/* Search Styles */
.search-container {
    position: relative;
    width: 70%;
}

.search-form {
    display: flex;
    width: 70%;
}

.search-form input {
    flex: 1;
    padding: 10px 16px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-form button {
    background: #f0f2f5;
    border: none;
    border-radius: 0 20px 20px 0;
    padding: 0 12px;
    cursor: pointer;
    margin-left: -50px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e6eb;
}

.clear-search {
    color: #1877f2;
    text-decoration: none;
    font-weight: 600;
}

.search-section {
    margin-bottom: 20px;
}

.search-section h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #65676b;
}

.search-user {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
}

.search-user:hover {
    background: #f0f2f5;
}

.search-user .user-info {
    margin-left: 12px;
}

.search-user h4 {
    margin-bottom: 4px;
}

.view-profile {
    color: #1877f2;
    font-size: 14px;
    text-decoration: none;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #65676b;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #bcc0c4;
}

.no-results h3 {
    margin-bottom: 8px;
}

.search-post {
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    border-left: 3px solid #1877f2;
    background: #f7f8fa;
}

.search-post:hover {
    background: #f0f2f5;
}

.search-post p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Notification Styles */
.notification-container {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f02849;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #e4e6eb;
}

.notification-header h3 {
    margin: 0;
    font-size: 18px;
}

.notification-header a {
    color: #1877f2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
}

.notification-item:hover {
    background: #f0f2f5;
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
    background: #3b5998;
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: #65676b;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #65676b;
}

/* Toast Notifications */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    border-left: 4px solid #45bd62;
}

.notification-error {
    border-left: 4px solid #f02849;
}

.notification-info {
    border-left: 4px solid #1877f2;
}

.notification-toast .notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #65676b;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Left sidebar */
.left-sidebar {
    width: 25%;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.group-info {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
}

.group-name {
    font-size: 20px;
    font-weight: 600;
    margin: 8px 0;
}

.group-stats {
    display: flex;
    gap: 16px;
    margin: 12px 0;
    color: #65676b;
    font-size: 14px;
}

.group-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    flex: 1;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: #1877f2;
    color: white;
}

.btn-primary:hover {
    background: #166fe5;
}

.btn-secondary {
    background: #e4e6eb;
    color: #050505;
}

.btn-secondary:hover {
    background: #d8dadf;
}

.btn-danger {
    background: #f02849;
    color: white;
}

.btn-danger:hover {
    background: #d91c3a;
}

.shortcuts-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

.shortcut-item:hover {
    background: #f0f2f5;
}

.shortcut-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #1877f2;
}

/* Stories Section */
.stories-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.stories-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.stories {
    display: flex;
    gap: 10px;
    padding: 8px 0;
}

.story {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 80px;
}

.story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-bottom: 6px;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #1877f2;
}

.story-user {
    font-size: 12px;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.create-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 80px;
}

.create-story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1877f2;
    font-size: 24px;
    margin-bottom: 6px;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e4e6eb;
}

.create-story-text {
    font-size: 12px;
    text-align: center;
    color: #65676b;
}

/* Main content */
.main-content {
    flex: 1;
    width: 50%;
}

.create-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
}

.post-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b5998;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.post-placeholder {
    flex: 1;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 12px 16px;
    color: #65676b;
    cursor: pointer;
}

.post-options {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e4e6eb;
}

.post-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    color: #65676b;
    font-weight: 600;
}

.post-option:hover {
    background: #f0f2f5;
}

.pinned-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    position: relative;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3b5998;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 8px;
}

.post-user {
    font-weight: 600;
    cursor: pointer;
}

.post-user:hover {
    text-decoration: underline;
}

.post-meta {
    color: #65676b;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-content {
    margin-bottom: 12px;
}

.post-media {
    width: 100%;
    border-radius: 8px;
    margin: 12px 0;
    max-height: 400px;
    object-fit: cover;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    margin: 12px 0;
}

.post-video {
    width: 100%;
    border-radius: 8px;
    max-height: 400px;
    object-fit: contain;
}

.article-post {
    border-left: 4px solid #f7b928;
    padding-left: 12px;
}

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1c1e21;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e4e6eb;
    border-bottom: 1px solid #e4e6eb;
    padding: 8px 0;
    margin: 12px 0;
}

.post-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #65676b;
    font-weight: 600;
    flex: 1;
    justify-content: center;
    transition: background-color 0.3s;
}

.post-action:hover {
    background: #f0f2f5;
}

.post-action.active {
    color: #1877f2;
}

.post-action.active i {
    color: #1877f2;
}

.comments-toggle {
    background: none;
    border: none;
    color: #65676b;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.comments-toggle:hover {
    background: #f0f2f5;
}

.comments-toggle.active {
    color: #1877f2;
}

.comment-section {
    margin-top: 16px;
}

.comment-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.comment-text {
    flex: 1;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #e4e6eb;
    resize: none;
    height: 40px;
    font-family: inherit;
    font-size: 14px;
}

.comment-btn {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.comment-btn:hover {
    background: #166fe5;
}

.comment-btn:disabled {
    background: #e4e6eb;
    color: #bcc0c4;
    cursor: not-allowed;
}

.recent-posts {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
}

.see-more {
    color: #1877f2;
    font-weight: 600;
    cursor: pointer;
}

/* Right sidebar */
.right-sidebar {
    width: 25%;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.online-members {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 16px;
}

.member-list {
    margin-top: 12px;
}

.member {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.member:hover {
    background: #f0f2f5;
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b5998;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #31a24c;
    border: 2px solid white;
}

.group-events {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.event {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.3s;
}

.event:hover {
    background: #f0f2f5;
}

.event-date {
    width: 56px;
    height: 56px;
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.event-month {
    font-size: 12px;
    font-weight: 600;
    color: #1877f2;
}

.event-day {
    font-size: 20px;
    font-weight: 700;
}

.event-details {
    flex: 1;
}

.event-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.event-time {
    color: #65676b;
    font-size: 13px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #65676b;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background: #f0f2f5;
}

.form-group {
    margin-bottom: 16px;
    padding: 0 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dddfe2;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #1877f2;
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #65676b;
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    padding: 0 24px 20px;
}

.error-message {
    background: #ffe6e6;
    color: #d91c3a;
    padding: 12px;
    border-radius: 6px;
    margin: 16px 24px;
    font-size: 14px;
}

.success-message {
    background: #e6f4ea;
    color: #137333;
    padding: 12px;
    border-radius: 6px;
    margin: 16px 24px;
    font-size: 14px;
}

/* Menu Dropdown */
.menu-dropdown {
    position: relative;
    display: inline-block;
}

.menu-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    padding: 8px 0;
}

.menu-content a {
    color: #1c1e21;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.menu-content a:hover {
    background-color: #f0f2f5;
}

.menu-dropdown:hover .menu-content {
    display: block;
}

/* Share button styles */
.share-container {
    position: relative;
    display: inline-block;
}

.share-options {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 100;
    min-width: 150px;
}

.share-option {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.share-option:hover {
    background: #f0f2f5;
}

/* Comments section styles */
.comments-section {
    margin-top: 16px;
    border-top: 1px solid #e4e6eb;
    padding-top: 12px;
}

.comment {
    display: flex;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 8px;
    background: #f0f2f5;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b5998;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-user {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    cursor: pointer;
}

.comment-user:hover {
    text-decoration: underline;
}

.comment-text {
    font-size: 14px;
    margin-bottom: 4px;
    background: none;
    border: none;
    padding: 0;
    height: auto;
    resize: none;
    font-family: inherit;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #65676b;
}

.comment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-action {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.comment-action:hover {
    background: #e4e6eb;
}

.comment-action.liked {
    color: #1877f2;
}

.comment-action.disliked {
    color: #f02849;
}

/* Post actions menu */
.post-actions-menu {
    position: absolute;
    top: 0;
    right: 0;
}

.post-menu-btn {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.post-menu-btn:hover {
    background: #f0f2f5;
}

.post-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px;
    z-index: 100;
    min-width: 120px;
}

.post-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
}

.post-menu button:hover {
    background: #f0f2f5;
}

.delete-form {
    margin: 0;
}

.delete-post, .delete-comment {
    color: #f02849;
}

.delete-post:hover, .delete-comment:hover {
    background: #ffe6e6;
}

/* Story viewer styles */
.story-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.story-content {
    max-width: 400px;
    max-height: 80vh;
    position: relative;
    background: black;
    border-radius: 8px;
    overflow: hidden;
}

.story-media {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
}

.story-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.close-story {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.close-story:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Word count styles */
.word-count {
    font-size: 12px;
    color: #65676b;
    margin-top: 4px;
    text-align: right;
}

.word-count.warning {
    color: #f02849;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1877f2;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 1100px) {
    .right-sidebar {
        display: none;
    }
    
    .left-sidebar {
        width: 30%;
    }
    
    .main-content {
        width: 70%;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    
    .left-sidebar, .main-content {
        width: 100%;
        position: static;
    }
    
    .group-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .group-actions {
        width: 100%;
    }
    
    .stories {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .header-center {
        margin: 0 10px;
    }
    
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
}

@media (max-width: 600px) {
    .header-title {
        font-size: 20px;
    }
    
    .header-icons {
        gap: 10px;
    }
    
    .header-icon {
        font-size: 18px;
    }
    
    .post-options {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-option {
        justify-content: flex-start;
    }
    
    .menu-content {
        min-width: 180px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header, .form-group, .modal-actions {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .notification-dropdown {
        width: 280px;
        right: -80px;
    }
    
    .story-content {
        max-width: 100%;
        border-radius: 0;
        height: 100%;
    }
    
    .story-media {
        max-height: 100vh;
    }
}

/* Footer */
footer {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 16px;
    text-align: center;
    margin-top: 20px;
    color: #65676b;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}