/* ============================================
   Kaymn Platform Styles - Based on test.html
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800;900&display=swap');

/* Prevent horizontal scroll and white space */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Root Variables */
:root {
    --primary: #22c55e;
    --primary-light: #34d399;
    --primary-dark: #16a34a;
    --primary-darker: #15803d;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smooth Transitions */
* {
    transition-property: color, background-color, border-color, transform, opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Focus States for Accessibility */
*:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* Fixed Header on Desktop, Sticky on Mobile */
nav.bg-white\/95 {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: visible !important;
}

/* Fixed Header on Desktop */
@media (min-width: 1024px) {
    nav.bg-white\/95 {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 50;
    }
    
    /* Add padding-top to body to compensate for fixed navbar */
    body {
        padding-top: 4rem; /* h-16 = 4rem = 64px */
    }
}

/* Ensure navbar container doesn't clip dropdown */
nav.bg-white\/95 > div {
    overflow: visible !important;
}

nav.bg-white\/95 > div > div {
    overflow: visible !important;
}

/* Animations */
@keyframes fadeIn {
    from {
    opacity: 0;
        transform: translateY(10px);
}
    to {
    opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
    opacity: 0;
        transform: translateX(-20px);
}
    to {
    opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Interest Card Hover Effect */
.interest-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interest-card:hover {
    transform: translateY(-4px) scale(1.02);
}

.interest-card.active {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 163, 74, 0.05) 100%);
}

/* Post Card Hover */
.post-card {
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Expert Card Hover */
.expert-card {
    transition: all 0.3s ease;
}

.expert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Tab Indicator Animation */
.tab-indicator {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: left, width;
    z-index: 0;
    pointer-events: none;
    background-color: rgba(34, 197, 94, 0.1) !important;
}

/* Ensure tab buttons are above indicator */
.tab-btn {
    position: relative;
    z-index: 10;
}

/* Horizontal scrollable tabs */
.scrollbar-hide {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Smooth scrolling for tabs */
#settingsTabsContainer {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    cursor: grab;
}

#settingsTabsContainer:active {
    cursor: grabbing;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 20rem;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, visibility 0.3s ease, opacity 0.3s ease;
    z-index: 60;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.open,
.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    display: flex;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 50;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(16, 163, 74, 0.02) 100%);
    flex-shrink: 0;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
}

.mobile-menu-close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.25rem;
}

.mobile-menu-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.mobile-menu-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.mobile-menu-search i {
    color: #6b7280;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-menu-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    color: #1f2937;
    width: 100%;
}

.mobile-menu-search input::placeholder {
    color: #9ca3af;
}

/* Mobile Search Results Dropdown */
.mobile-search-results-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 60vh;
    overflow-y: auto;
    z-index: 1000;
    margin: 0 0.5rem;
}

.mobile-search-results-dropdown::-webkit-scrollbar {
    width: 4px;
}

.mobile-search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.mobile-search-results-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.mobile-search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Menu Navigation */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.25rem;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.mobile-menu-item:hover {
    background: #f3f4f6;
    color: #22c55e;
}

.mobile-menu-item i {
    width: 1.25rem;
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    transition: color 0.2s;
}

.mobile-menu-item:hover i {
    color: #22c55e;
}

.mobile-menu-item span {
    flex: 1;
}

.mobile-menu-badge {
    background: #22c55e;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.5rem;
    text-align: center;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    flex-shrink: 0;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-user-info img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.2);
    object-fit: cover;
}

.mobile-user-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.mobile-user-email {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
}

.mobile-menu-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    color: #dc2626;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-logout:hover {
    background: #fee2e2;
    color: #b91c1c;
    }
    
.mobile-menu-logout i {
        font-size: 1rem;
    }
    
/* Mobile Menu Responsive */
@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: 100vw;
    }
    
    .mobile-menu-header {
        padding: 0.875rem 1rem;
    }
    
    .logo-icon-wrapper {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.125rem;
    }
    
    .logo-name {
        font-size: 1.125rem;
    }
    
    .mobile-menu-item {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .mobile-menu-item i {
        width: 1.125rem;
        font-size: 1rem;
    }
}

/* Create Post Form Animation */
.create-post-form {
    max-height: 0;
        overflow: hidden;
    transition: max-height 0.3s ease-out;
    }
    
.create-post-form.expanded {
    max-height: 2000px;
    }
    
/* Subject Selector Styles - Match my-interests page */
.subject-selector-container {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    }
    
.subject-selector-container::-webkit-scrollbar {
    height: 6px;
    }
    
.subject-selector-container::-webkit-scrollbar-track {
    background: transparent;
    }
    
.subject-selector-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
    }
    
.subject-selector-container::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
    }
    
.subject-select-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    }
    
.subject-select-btn:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    }
    
.subject-select-btn.selected {
    border-color: #16a34a;
    color: #065f46;
    background: #ecfdf5;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.25);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .subject-selector-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .subject-selector-container .flex {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .subject-select-btn {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    }
    
/* Error Message Styles */
.error-message {
        display: flex;
        align-items: center;
    gap: 0.5rem;
    color: #ef4444;
        font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
}

.error-message.hidden {
        display: none;
    }
    
.error-message i {
        font-size: 0.875rem;
    }
    
/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    }
    
@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Improved Typography Scale - Minimum 14px for readability */
.text-xs {
    font-size: 0.875rem; /* 14px instead of 12px */
        line-height: 1.5;
    }
    
/* Improved Color Contrast */
.text-gray-500 {
    color: #64748b; /* Darker gray for better contrast */
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateY(0);
        opacity: 1;
}

.toast.success {
    border-right: 4px solid #22c55e;
}

.toast.error {
    border-right: 4px solid #ef4444;
}

.toast.info {
    border-right: 4px solid #3b82f6;
}

.toast-icon {
    width: 24px;
    height: 24px;
        border-radius: 50%;
    display: flex;
    align-items: center;
        justify-content: center;
        flex-shrink: 0;
}

.toast.success .toast-icon {
    background: #dcfce7;
    color: #22c55e;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast.info .toast-icon {
    background: #dbeafe;
    color: #3b82f6;
}

/* Form Error States */
.form-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 163, 74, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
    font-size: 2rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Improved Button Consistency */
.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px; /* Touch-friendly */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(34, 197, 94, 0.3), 0 4px 6px -4px rgba(34, 197, 94, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
}

    .btn-secondary {
    background: white;
    color: #475569;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Improved Tablet Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .grid-cols-tablet-2 {
        grid-template-columns: repeat(2, 1fr);
}
}

/* Improved Icon Sizes */
.icon-sm {
    width: 16px;
    height: 16px;
    font-size: 0.875rem;
}

.icon-md {
    width: 20px;
    height: 20px;
    font-size: 1rem;
}

.icon-lg {
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
}

/* Improved Touch Targets for Mobile */
@media (max-width: 768px) {
    button, a, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tab Button Styles */
.tab-btn.active {
    color: #22c55e !important;
    font-weight: 600;
}

.tab-btn.active i {
    color: #22c55e !important;
}

.tab-btn.active > span:not(.bg-gray-100) {
    color: #22c55e !important;
}

/* Keep badge background for active tab */
.tab-btn.active .bg-gray-100 {
    background-color: rgba(34, 197, 94, 0.1) !important;
    color: #22c55e !important;
}

/* Content Section */
.content-section {
    display: none;
}

.content-section:not(.hidden) {
    display: block;
}

.content-section.hidden {
    display: none;
}

/* Primary Color Utilities */
.text-primary {
    color: #22c55e;
}

.bg-primary {
    background-color: #22c55e;
}

.border-primary {
    border-color: #22c55e;
}

.hover\:text-primary:hover {
    color: #22c55e;
}

.hover\:border-primary:hover {
    border-color: #22c55e;
}

.bg-primary\/10 {
    background-color: rgba(34, 197, 94, 0.1);
}

.bg-primary\/5 {
    background-color: rgba(34, 197, 94, 0.05);
}

.border-primary\/20 {
    border-color: rgba(34, 197, 94, 0.2);
}

.border-primary\/50 {
    border-color: rgba(34, 197, 94, 0.5);
}

/* Gradient Utilities */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-primary {
    --tw-gradient-from: #22c55e;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(34, 197, 94, 0));
}

.to-primary-dark {
    --tw-gradient-to: #16a34a;
}

/* Animation Utilities */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Scrollbar Thin */
.scrollbar-thin {
    scrollbar-width: thin;
}

.scrollbar-thumb-gray-300::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
}

.scrollbar-track-transparent::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Profile Tab Content */
.profile-tab-content {
        display: none;
}

.profile-tab-content.active {
        display: block;
}

.profile-tab-content.hidden {
        display: none;
    }
    
/* Stat Card Hover */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Comments Styles - Post Detail Page
   ============================================ */

/* Comment Item */
.comment-item-modern {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.comment-item-modern:hover {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-color: #22c55e;
}

/* Comment Avatar */
.comment-avatar-link-modern {
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.comment-avatar-link-modern:hover {
    transform: scale(1.05);
}

.comment-avatar-modern {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.comment-avatar-link-modern:hover .comment-avatar-modern {
    border-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
    flex-shrink: 0;
}

/* Comment Content */
.comment-content-modern {
    flex: 1;
    min-width: 0;
}

.comment-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author-modern {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.9375rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.comment-time-modern {
    font-size: 0.8125rem;
    color: #6b7280;
}

.comment-text-modern {
    color: #374151;
    line-height: 1.7;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

/* Comment Actions */
.comment-actions-auth-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.comment-reply-btn-modern,
.comment-delete-btn-modern,
.comment-report-btn-modern {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.comment-reply-btn-modern:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-color: #22c55e;
    transform: translateY(-1px);
}

.comment-delete-btn-modern:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-1px);
}

.comment-report-btn-modern:hover {
    background: #f59e0b;
    color: #ffffff;
    border-color: #f59e0b;
    transform: translateY(-1px);
}

.comment-reply-btn-modern i,
.comment-delete-btn-modern i,
.comment-report-btn-modern i {
    font-size: 0.75rem;
}

/* Comment Replies */
.comment-replies-modern {
    margin-top: 1rem;
    padding-right: 1rem;
    border-right: 3px solid #22c55e;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reply-item-modern {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.reply-item-modern:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-color: #22c55e;
}

.reply-avatar-link-modern {
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.reply-avatar-link-modern:hover {
    transform: scale(1.05);
}

.reply-avatar-modern {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.reply-avatar-link-modern:hover .reply-avatar-modern {
    border-color: #22c55e;
    box-shadow: 0 1px 4px rgba(34, 197, 94, 0.15);
    flex-shrink: 0;
}

.reply-content-modern {
    flex: 1;
    min-width: 0;
}

.reply-header-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.reply-author-modern {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1f2937;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.reply-time-modern {
    font-size: 0.75rem;
    color: #6b7280;
}

.reply-text-modern {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Reply Form */
.reply-form-modern {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.reply-form-modern.active {
    display: block;
}

.reply-form-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.reply-form-title-modern {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.reply-form-close-modern {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.reply-form-close-modern:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.reply-input-modern {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 5rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s;
}

.reply-input-modern:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.reply-form-actions-modern {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.reply-submit-btn-modern,
.reply-cancel-btn-modern {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.reply-submit-btn-modern {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.reply-submit-btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.reply-cancel-btn-modern {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.reply-cancel-btn-modern:hover {
    background: #e5e7eb;
}

/* Comments Responsive */
@media (max-width: 768px) {
    .comment-item-modern {
        padding: 0.75rem;
        gap: 0.5rem;
}

    .comment-avatar-modern {
        width: 2.5rem;
        height: 2.5rem;
}

    .comment-text-modern {
    font-size: 0.875rem;
}

    .comment-actions-auth-modern {
        gap: 0.375rem;
}

    .comment-reply-btn-modern,
    .comment-delete-btn-modern,
    .comment-report-btn-modern {
        padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

    .reply-item-modern {
        padding: 0.5rem;
        gap: 0.375rem;
}

    .reply-avatar-modern {
        width: 2rem;
        height: 2rem;
    }
    
    .reply-text-modern {
        font-size: 0.8125rem;
}

    .comment-replies-modern {
        padding-right: 0.75rem;
}
}

/* ============================================
   Footer Styles
   ============================================ */

.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
    padding: 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.5rem;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

.footer-logo-tagline {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.footer-description {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 0.5rem;
    color: #6b7280;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.social-link:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

/* Footer Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-column-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column-title i {
    color: #22c55e;
    font-size: 1rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links-list li {
    margin: 0;
}

.footer-links-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    padding: 0.25rem 0;
}

.footer-links-list a:hover {
    color: #22c55e;
    transform: translateX(-4px);
}

.footer-links-list a i {
    font-size: 0.75rem;
    color: #9ca3af;
}

.footer-links-list a:hover i {
    color: #22c55e;
}

.footer-links-list span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-links-list span i {
    font-size: 0.75rem;
}

/* Footer Bottom Section */
.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    }
    
    .footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-copyright p {
    margin: 0;
}

.footer-copyright strong {
    color: #1f2937;
    font-weight: 700;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.footer-separator {
    color: #d1d5db;
}

/* ============================================
   Search Bar Styles
   ============================================ */

.search-container-nav {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.4rem 1rem;
    transition: all 0.2s ease;
}

.search-container-nav:focus-within {
    background: #ffffff;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    }
    
.search-icon-nav {
    color: #64748b;
    font-size: 1rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.search-input-nav {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9375rem;
    color: #1f2937;
    padding: 0;
}

.search-input-nav::placeholder {
    color: #94a3b8;
}

.search-shortcut-hint {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-right: 0.5rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-shortcut-hint:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.search-shortcut-hint kbd {
    padding: 0.125rem 0.375rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    padding: 0.5rem;
}

.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Search Results Items */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item i {
    color: #64748b;
    font-size: 1rem;
    width: 1.25rem;
        text-align: center;
    }
    
.search-result-item-content {
    flex: 1;
    min-width: 0;
}

.search-result-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.search-result-item-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Search Results Sections */
.search-results-section {
    padding: 0.5rem 0;
}

.search-results-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.05em;
}

.search-results-header i {
    color: #22c55e;
    font-size: 0.875rem;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.search-result-subtitle {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.3;
}

.search-result-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #64748b;
}

.search-result-item img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
}

.search-no-results i {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 0.75rem;
}

.search-no-results p {
    font-size: 0.875rem;
    margin: 0;
}

.search-error {
    padding: 1rem;
    text-align: center;
    color: #ef4444;
    font-size: 0.875rem;
}

/* Mobile Search Results Styling */
.mobile-search-results-dropdown .search-results-section {
    padding: 0.25rem 0;
}

.mobile-search-results-dropdown .search-results-header {
    padding: 0.625rem 0.875rem;
    font-size: 0.6875rem;
}

.mobile-search-results-dropdown .search-result-item {
    padding: 0.875rem;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
}

.mobile-search-results-dropdown .search-result-item img {
    width: 2.25rem;
    height: 2.25rem;
}

.mobile-search-results-dropdown .search-result-icon {
    width: 2.25rem;
    height: 2.25rem;
}

.mobile-search-results-dropdown .search-result-title {
    font-size: 0.875rem;
}

.mobile-search-results-dropdown .search-result-subtitle {
    font-size: 0.75rem;
}

/* Search Responsive */
@media (max-width: 1024px) {
    .search-container-nav {
        max-width: 400px;
    }
    
    .search-shortcut-hint {
        display: none;
    }
}

@media (max-width: 768px) {
    .search-container-nav {
        max-width: 300px;
}
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
}
}

@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-top {
        gap: 1.5rem;
        padding-bottom: 1.5rem;
}

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
    align-items: flex-start;
        gap: 0.75rem;
}

    .footer-legal {
    flex-direction: column;
    align-items: flex-start;
        gap: 0.5rem;
}

    .footer-separator {
    display: none;
}
}

@media (max-width: 480px) {
    .footer-container {
        padding: 1.5rem 0.75rem 0.75rem;
}

    .footer-logo-icon {
        width: 2.5rem;
        height: 2.5rem;
    font-size: 1.25rem;
}

    .footer-logo-name {
        font-size: 1.25rem;
}

    .footer-logo-tagline {
        font-size: 0.8125rem;
    }
    
    .footer-description {
        font-size: 0.875rem;
    }
    
    .social-link {
        width: 2.25rem;
        height: 2.25rem;
    font-size: 0.875rem;
}

    .footer-column-title {
        font-size: 0.9375rem;
    }
    
    .footer-links-list a,
    .footer-links-list span {
        font-size: 0.8125rem;
    }
    
    .footer-copyright,
    .footer-legal {
        font-size: 0.8125rem;
    }
}

/* Notification Dropdown */
#notificationsWrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: auto;
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex !important;
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
    flex-direction: column;
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #f3f4f6;
    background: linear-gradient(to left, rgba(34, 197, 94, 0.05), transparent);
}

.notification-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.mark-all-read:hover {
    background: rgba(34, 197, 94, 0.1);
    }
    
.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    padding: 0.5rem 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #f0fdf4;
}

.notification-item.unread:hover {
    background-color: #dcfce7;
}

.notification-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 163, 74, 0.05));
    color: #22c55e;
    font-size: 1rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.notification-content strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    }
    
.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.notification-footer {
    padding: 0.875rem 1.25rem;
    border-top: 2px solid #f3f4f6;
    text-align: center;
    background: #f9fafb;
}

.notification-footer a {
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.notification-footer a:hover {
    color: #16a34a;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .notification-dropdown {
        width: calc(100vw - 2rem) !important;
        max-width: 360px !important;
        min-width: 280px !important;
        left: 0 !important;
        right: auto !important;
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        transform: translateY(-10px);
    }
    
    .notification-dropdown.active {
        display: flex !important;
        width: calc(100vw - 2rem) !important;
        max-width: 360px !important;
        min-width: 280px !important;
        flex-direction: column;
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: calc(100% + 0.5rem) !important;
        transform: translateY(0) !important;
    }
    
    /* Ensure wrapper is positioned correctly on mobile */
    #notificationsWrapper {
        position: relative !important;
    }
    
    /* Adjust dropdown position if it goes off screen */
    .notification-dropdown {
        max-width: min(360px, calc(100vw - 1rem)) !important;
    }
    
    .notification-dropdown.active {
        max-width: min(360px, calc(100vw - 1rem)) !important;
    }
}

@media (max-width: 640px) {
    .notification-dropdown.active {
        max-width: min(310px, calc(100vw - 1rem)) !important;
    }
}

/* ============================================
   Mobile Header & Sidebar Optimization
   ============================================ */
@media (max-width: 768px) {
    /* Navbar Mobile Optimization */
    nav.bg-white\/95 {
        padding: 0;
        height: auto;
        min-height: 56px;
        overflow: visible !important;
    }
    
    /* Ensure navbar containers don't clip dropdown on mobile */
    nav.bg-white\/95 > div {
        overflow: visible !important;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    nav.bg-white\/95 > div > div {
        height: 56px;
        min-height: 56px;
        padding: 0;
        overflow: visible !important;
    }
    
    /* Mobile Menu Button */
    #mobileMenuBtn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    /* Logo on Mobile */
    nav.bg-white\/95 a[aria-label="كايمن"] {
        gap: 0.5rem;
    }
    
    nav.bg-white\/95 a[aria-label="كايمن"] > div {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    nav.bg-white\/95 a[aria-label="كايمن"] > div i {
        font-size: 0.875rem;
    }
    
    /* Actions on Mobile */
    nav.bg-white\/95 > div > div:last-child {
        gap: 0.5rem;
    }
    
    nav.bg-white\/95 button,
    nav.bg-white\/95 a[aria-label="الرسائل"] {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    nav.bg-white\/95 button i,
    nav.bg-white\/95 a[aria-label="الرسائل"] i {
        font-size: 1rem;
    }
    
    /* User Avatar on Mobile */
    nav.bg-white\/95 a[aria-label="ملفي الشخصي"] {
        padding: 0;
        gap: 0;
    }
    
    nav.bg-white\/95 a[aria-label="ملفي الشخصي"] img {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    /* Mobile Menu Optimization */
    .mobile-menu {
        width: 100%;
        max-width: 100vw;
    }
    
    .mobile-menu-header {
        padding: 1rem;
        min-height: 64px;
    }
    
    .mobile-menu-logo {
        gap: 0.75rem;
    }
    
    .mobile-menu-logo .logo-icon-wrapper {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .mobile-menu-close {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .mobile-menu-item {
        padding: 0.875rem 1rem;
        min-height: 48px;
        font-size: 0.9375rem;
    }
    
    .mobile-menu-item i {
        width: 20px;
        font-size: 1.125rem;
    }
    
    /* Left Sidebar - Hidden on Mobile */
    aside[aria-label="القائمة الجانبية"] {
        display: none !important;
    }
    
    /* Right Sidebar - Hidden on Mobile */
    aside[aria-label="المحتوى الجانبي"] {
        display: none !important;
    }
    
    /* Main Content - Full Width on Mobile */
    main.lg\:col-span-6,
    main.lg\:col-span-7 {
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
    }
    
    /* Fix grid on mobile to prevent content hiding */
    .grid.grid-cols-1.lg\:grid-cols-12 {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: visible !important;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        gap: 0.5rem !important;
    }
    
    /* Ensure all grid children are visible on mobile */
    .grid.grid-cols-1.lg\:grid-cols-12 > * {
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
        box-sizing: border-box;
    }
    
    /* Reduce padding on mobile */
    .max-w-7xl {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Reduce padding for sections and cards on mobile */
    section.bg-white,
    div.bg-white.rounded-2xl {
        padding: 0.75rem !important;
    }
    
    /* Reduce padding for main content */
    main {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Reduce padding for interest cards container */
    #interestsContainer {
        margin-left: -0.5rem !important;
        margin-right: -0.5rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-top: 0 !important;
    }
    
    /* Remove margin bottom from interests header on mobile */
    section[aria-label="الاهتمامات"] > div:first-child {
        margin-bottom: 0 !important;
    }
    
    /* Reduce padding for tabs */
    .tab-btn {
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Style login button on mobile */
    nav.bg-white\/95 a[href*="login"] {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        min-width: auto !important;
        min-height: 36px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
    
    /* Reduce padding for post cards */
    .post-card {
        padding: 1rem !important;
    }
    
    /* Reduce padding for expert cards */
    .expert-card {
        padding: 1rem !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    /* Ensure mobile menu is hidden by default */
    .mobile-menu:not(.active):not(.open) {
        transform: translateX(100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .mobile-menu-overlay:not(.active) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 480px) {
    /* Extra Small Screens */
    nav.bg-white\/95 > div {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        overflow: visible !important;
    }
    
    nav.bg-white\/95 > div > div {
        height: 52px;
        min-height: 52px;
        overflow: visible !important;
    }
    
    #mobileMenuBtn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    nav.bg-white\/95 a[aria-label="كايمن"] > div {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    nav.bg-white\/95 button,
    nav.bg-white\/95 a[aria-label="الرسائل"] {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
    
    nav.bg-white\/95 a[aria-label="ملفي الشخصي"] img {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .mobile-menu-item {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .mobile-menu-item i {
        width: 18px;
        font-size: 1rem;
    }
    
    /* Ensure mobile menu is hidden by default */
    .mobile-menu:not(.active):not(.open) {
        transform: translateX(100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        display: none !important;
    }
    
    .mobile-menu-overlay:not(.active) {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        display: none !important;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    html.menu-open {
        overflow: hidden !important;
    }
    
    /* Fix horizontal scroll for interests on mobile */
    section[aria-label="الاهتمامات"] {
        overflow: visible !important;
        padding: 0.5rem !important; /* p-2 = 0.5rem */
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    /* Remove margin bottom from header on mobile */
    section[aria-label="الاهتمامات"] > div:first-child {
        margin-bottom: 0 !important;
    }
    
    #interestsContainer {
        margin: 0 !important;
        margin-top: 0 !important;
        margin-left: -0.5rem !important; /* -mx-2 = -0.5rem */
        margin-right: -0.5rem !important;
        padding: 0 0.5rem !important; /* px-2 = 0.5rem - matches section padding */
        padding-bottom: 0.5rem !important; /* pb-2 */
        width: calc(100% + 1rem) !important;
        max-width: calc(100vw + 1rem) !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        scroll-behavior: smooth;
        position: relative;
        z-index: 1;
        display: block !important;
        overscroll-behavior-x: contain;
        /* Remove any conflicting styles */
        box-sizing: border-box;
    }
    
    #interestsContainer > div {
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        gap: 0.75rem !important;
        min-width: max-content !important;
        width: max-content !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        /* Add padding at the end to show last card fully */
        padding-right: 1rem !important;
    }
    
    /* Ensure interest cards are fully visible on mobile */
    .interest-card {
        flex-shrink: 0 !important;
        min-width: 128px !important;
        width: 128px !important;
        max-width: 128px !important;
    }
    
    /* Fix subject selector on mobile */
    .subject-selector-container {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        width: calc(100% + 1rem);
        max-width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }
    
    .subject-selector-container > div {
        min-width: max-content;
        width: max-content;
        padding-right: 0.5rem;
    }
    }
    
/* ============================================
   Home Page Layout Consistency
   ============================================ */
/* Ensure consistent grid layout */
.max-w-7xl {
    max-width: 80rem;
        width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    }
    
/* Grid consistency */
.grid.grid-cols-1.lg\:grid-cols-12 {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
    }
    
@media (min-width: 1024px) {
    .grid.grid-cols-1.lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 1.5rem;
    }
    
    /* Ensure sidebars are properly aligned */
    aside[aria-label="القائمة الجانبية"],
    aside[aria-label="المحتوى الجانبي"] {
        display: block;
    }
    
    /* Main content should take exactly 6 columns */
    main.lg\:col-span-6 {
        grid-column: span 6 / span 6;
    }
    
    /* Sidebars should take exactly 3 columns each */
    aside.lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }
}

/* Consistent spacing for sections */
section.bg-white,
div.bg-white {
    margin-bottom: 0;
}

/* Ensure proper spacing between elements */
.space-y-4 > * + * {
    margin-top: 1rem;
    }
    
.space-y-6 > * + * {
    margin-top: 1.5rem;
    }
    
@media (min-width: 1024px) {
    .space-y-4.lg\:space-y-6 > * + * {
        margin-top: 1.5rem;
    }
}

/* Fix any overflow issues - Allow horizontal scroll for interests */
/* Fix any overflow issues - Allow horizontal scroll for interests */
section[aria-label="الاهتمامات"] {
    overflow: visible;
    position: relative;
    width: 100%;
    max-width: 100%;
    }
    
/* Desktop styles for interests container */
@media (min-width: 769px) {
    #interestsContainer {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
        position: relative;
        touch-action: pan-x;
        will-change: scroll-position;
    }
}

/* Desktop scrollbar styles */
@media (min-width: 769px) {
    #interestsContainer::-webkit-scrollbar {
        height: 6px;
    }
    
    #interestsContainer::-webkit-scrollbar-track {
        background: transparent;
    }
    
    #interestsContainer::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }
}

/* ============================================
   Message Notifications System
   ============================================ */

.message-notifications-container {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .message-notifications-container {
        left: auto;
        right: 1rem;
        max-width: 420px;
    }
}

.message-notification {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    pointer-events: all;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
}

.message-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.message-notification.hide {
    transform: translateX(-120%);
    opacity: 0;
}

.message-notification:hover {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.15), 0 10px 15px -6px rgba(0, 0, 0, 0.1);
}

.message-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    position: relative;
}

.message-notification-avatar {
    position: relative;
    flex-shrink: 0;
}

.message-notification-avatar img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-notification-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0.875rem;
    height: 0.875rem;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.message-notification-body {
    flex: 1;
    min-width: 0;
}

.message-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.message-notification-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1f2937;
    line-height: 1.4;
}

.message-notification-time {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

.message-notification-text {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-notification-count {
    display: inline-block;
    margin-right: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-radius: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.message-notification-close {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
}

.message-notification-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

.message-notification-close:active {
    transform: scale(0.95);
}

.message-notification-close i {
    font-size: 0.75rem;
}

.message-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    width: 100%;
    transform-origin: left;
    animation: progress-bar 8s linear forwards;
}

@keyframes progress-bar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .message-notifications-container {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        max-width: 100%;
    }
    
    .message-notification {
        border-radius: 0.875rem;
    }
    
    .message-notification-content {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .message-notification-avatar img {
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .message-notification-name {
        font-size: 0.875rem;
    }
    
    .message-notification-text {
        font-size: 0.8125rem;
    }
    
    .message-notification-close {
        top: 0.375rem;
        left: 0.375rem;
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* RTL Support */
[dir="rtl"] .message-notification {
    transform: translateX(120%);
}

[dir="rtl"] .message-notification.show {
    transform: translateX(0);
}

[dir="rtl"] .message-notification.hide {
    transform: translateX(120%);
}

[dir="rtl"] .message-notification:hover {
    transform: translateX(0) scale(1.02);
}

[dir="rtl"] .message-notification-progress {
    left: auto;
    right: 0;
    transform-origin: right;
}

[dir="rtl"] .message-notification-close {
    left: auto;
    right: 0.5rem;
}

@media (max-width: 640px) {
    [dir="rtl"] .message-notification-close {
        right: 0.375rem;
    }
}

/* Ensure cards are properly aligned */
.interest-card,
.expert-card,
.post-card {
    display: flex;
    flex-direction: column;
    }
    
/* Consistent padding for all cards */
.bg-white.rounded-2xl {
    padding: 1rem;
    }
    
@media (min-width: 1024px) {
    .bg-white.rounded-2xl {
        padding: 1.25rem;
    }
}
    
/* Fix tab navigation alignment */
.tab-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
/* Remove padding from Tabs Navigation only */
div[role="tablist"][aria-label="أقسام المحتوى"] {
    padding: 0 !important;
    }
    
/* Ensure proper text alignment */
.text-right {
    text-align: right;
    }
    
/* Fix any RTL issues */
[dir="rtl"] .grid {
    direction: rtl;
    }
    
[dir="rtl"] .flex {
    direction: rtl;
    }

/* Prevent white space on right side - but allow scrollable containers */
* {
        max-width: 100%;
    }
    
/* Exception for scrollable containers */
#interestsContainer,
.subject-selector-container {
    max-width: none;
    }
    
img, video, iframe, embed, object {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure all containers respect viewport width */
.container,
.max-w-7xl,
.max-w-6xl,
.max-w-5xl,
.max-w-4xl,
.max-w-3xl,
.max-w-2xl,
.max-w-xl,
.max-w-lg,
.max-w-md,
.max-w-sm {
    width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
/* Fix negative margins that cause overflow - but allow for scrollable containers */
    .subject-selector-container {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: calc(100% + 1rem);
    max-width: calc(100% + 1rem);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    }
    
.subject-selector-container > div {
    min-width: max-content;
    width: max-content;
}

/* Ensure sections don't overflow */
section,
div,
main,
article,
aside {
    max-width: 100%;
    box-sizing: border-box;
    }

/* ============================================
   Report Modal Styles
   ============================================ */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.report-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

.report-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    z-index: 10000;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.report-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(to left, rgba(34, 197, 94, 0.05), transparent);
}

.report-modal .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.report-modal .modal-header h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #22c55e, #16a34a);
    border-radius: 2px;
}

.report-modal .modal-close {
    background: #f1f5f9;
    border: none;
    border-radius: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: #64748b;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.report-modal .modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.report-modal .report-form {
    padding: 1.5rem;
}

.report-modal .form-group {
    margin-bottom: 1.5rem;
}

.report-modal .form-group:last-of-type {
    margin-bottom: 1.25rem;
}

.report-modal .form-group label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.report-modal .form-group select,
.report-modal .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    color: #0f172a;
    background: white;
    transition: all 0.2s ease;
    font-family: 'Tajawal', system-ui, sans-serif;
}

.report-modal .form-group select:focus,
.report-modal .form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.report-modal .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}

.report-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.report-modal .form-group textarea::placeholder {
    color: #94a3b8;
}

.report-modal .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.report-modal .btn-secondary,
.report-modal .btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.report-modal .btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.report-modal .btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.report-modal .btn-primary {
    background: linear-gradient(to left, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.2);
}

.report-modal .btn-primary:hover {
    background: linear-gradient(to left, #16a34a, #15803d);
    box-shadow: 0 6px 8px -1px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.report-modal .btn-primary:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .report-modal {
        padding: 0.5rem;
    }
    
    .report-modal .modal-content {
        max-width: 100%;
        border-radius: 1rem;
        max-height: 95vh;
    }
    
    .report-modal .modal-header {
        padding: 1.25rem;
    }
    
    .report-modal .modal-header h3 {
        font-size: 1.125rem;
    }
    
    .report-modal .report-form {
        padding: 1.25rem;
    }
    
    .report-modal .form-actions {
        flex-direction: column;
    }
    
    .report-modal .btn-secondary,
    .report-modal .btn-primary {
        width: 100%;
    }
}

/* ============================================
   Toast Notification Styles - Enhanced
   ============================================ */
.toast-notification {
    position: fixed;
    top: 90px;
    right: 20px;
    width: auto;
    max-width: 420px;
    min-width: 300px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 10000;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.toast-success {
    border-right-color: #22c55e;
    background: linear-gradient(to left, rgba(34, 197, 94, 0.05), white);
}

.toast-notification.toast-error {
    border-right-color: #ef4444;
    background: linear-gradient(to left, rgba(239, 68, 68, 0.05), white);
}

.toast-notification.toast-info {
    border-right-color: #3b82f6;
    background: linear-gradient(to left, rgba(59, 130, 246, 0.05), white);
}

.toast-notification.toast-warning {
    border-right-color: #f59e0b;
    background: linear-gradient(to left, rgba(245, 158, 11, 0.05), white);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.toast-content i {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0.25rem;
}

.toast-success .toast-content i {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.toast-error .toast-content i {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.toast-info .toast-content i {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.toast-warning .toast-content i {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.toast-content span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

.toast-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.toast-close:active {
    transform: scale(0.95);
}

.toast-close i {
    font-size: 0.875rem;
}

/* Responsive Toast */
@media (max-width: 640px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        min-width: auto;
        width: auto;
        top: 80px;
        padding: 0.875rem 1rem;
    }
    
    .toast-content {
        gap: 0.625rem;
    }
    
    .toast-content i {
        font-size: 1.125rem;
        width: 1.375rem;
        height: 1.375rem;
    }
    
    .toast-content span {
        font-size: 0.875rem;
    }
    
    .toast-close {
        width: 1.75rem;
        height: 1.75rem;
        padding: 0.25rem;
    }
}

/* Hide scrollbar for home page left sidebar - Applied globally */
@media (min-width: 1024px) {
    .home-left-sidebar-fixed {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .home-left-sidebar-fixed::-webkit-scrollbar {
        width: 0px !important;
        height: 0px !important;
        display: none !important;
        background: transparent !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    
    .home-left-sidebar-fixed::-webkit-scrollbar-track,
    .home-left-sidebar-fixed::-webkit-scrollbar-thumb,
    .home-left-sidebar-fixed::-webkit-scrollbar-corner {
        width: 0px !important;
        height: 0px !important;
        display: none !important;
        background: transparent !important;
    }
    
    /* Hide scrollbar for all child elements inside left sidebar */
    .home-left-sidebar-fixed * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .home-left-sidebar-fixed *::-webkit-scrollbar {
        width: 0px !important;
        height: 0px !important;
        display: none !important;
    }
    
    .home-left-sidebar-fixed *::-webkit-scrollbar-track,
    .home-left-sidebar-fixed *::-webkit-scrollbar-thumb,
    .home-left-sidebar-fixed *::-webkit-scrollbar-corner {
        display: none !important;
        width: 0px !important;
        height: 0px !important;
    }
}

