:root {
    --primary: #87ceeb;
    --primary-dark: #58c1eb;
    --primary-light: #e0f7fa;
    --primary-color: var(--primary);
    --accent: #add8e6;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --danger: #e76f51;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-main: #fafafa;
    --glass: rgba(255, 255, 255, 0.8);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12px; /* Tiny, crisp fonts */
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #ffffff 100%);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover .service-icon {
    transform: scale(1.1);
}

.form-select, .form-control {
    font-size: 13.5px;
    padding: 12px 20px;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Glassmorphism Navbar */
.navbar {
    background: var(--glass) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-toggler {
    border: none !important;
}

.navbar-toggler-icon,
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2387CEEB' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-main) !important;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary) !important;
}

/* Modern Buttons */
.btn {
    font-size: 11px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
}

.btn-primary {
    background: var(--primary);
    border: none;
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(135, 206, 235, 0.3);
}

/* Bootstrap Overrides */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(135, 206, 235, 0.25);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: var(--primary);
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary);
}

.page-link {
    color: var(--primary);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}



/* Sleek Cards */
.card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

/* Hero Section */
.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

.carousel-bg-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 10s ease;
}

.carousel-item.active .carousel-bg-img {
    transform: scale(1.1);
}

.z-1 {
    z-index: 1;
}

.search-container {
    max-width: 900px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
}

.border-start-md {
    border-left: 1px solid rgba(0,0,0,0.1);
}

@media (max-width: 767.98px) {
    .border-start-md {
        border-left: none;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    .hero-section {
        min-height: 500px;
    }
}

/* Service Icons */
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 80px 0 40px;
    margin-top: 100px;
}

.footer h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer p {
    line-height: 1.6;
    color: var(--text-muted);
}

.footer-link {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8f9fa;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.social-icon .fa-x-twitter {
    font-size: 14px;
}

.newsletter-form .form-control {
    background: #f8f9fa;
    border: 1px solid transparent;
    padding: 12px 16px;
    border-radius: 10px 0 0 10px;
}

.newsletter-form .btn {
    border-radius: 0 10px 10px 0;
    padding: 0 20px;
}

@media (max-width: 575.98px) {
    .newsletter-form .form-control {
        border-radius: 10px;
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: 10px;
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .newsletter-form .form-control {
        border-radius: 10px 0 0 10px;
    }
    
    .newsletter-form .btn {
        border-radius: 0 10px 10px 0;
    }
}

.footer-bottom {
    padding-top: 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.03);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    margin-bottom: 0;
}

/* Forms */
.form-control, .form-select {
    font-size: 11.5px;
    border: 1px solid #efefef;
    background: #fdfdfd;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.05);
}

/* Auth Pages (Outlook Style) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f2f2f2;
    padding: 20px;
}

.auth-card {
    background: #fff;
    padding: 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.1);
}

.auth-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.auth-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1b1b1b;
}

.auth-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
    color: #1b1b1b;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    z-index: 10;
    font-size: 14px;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary);
}

.auth-card .form-control, .auth-card .form-select {
    border: none;
    border-bottom: 1px solid #666;
    border-radius: 0;
    padding: 8px 0;
    background: transparent;
    margin-bottom: 20px;
    font-size: 15px;
}

.auth-card .form-control:focus, .auth-card .form-select:focus {
    box-shadow: none;
    border-color: var(--primary);
    background: transparent;
}


.auth-card .btn-primary {
    background-color: var(--primary);
    border: none;
    border-radius: 0;
    padding: 8px 12px;
    min-width: 108px;
    float: none;
    display: block;
}

.auth-footer-links {
    margin-top: 40px;
    font-size: 13px;
}

.auth-footer-links a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

.auth-btn-container {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.back-btn {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #1b1b1b;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: authFadeIn 0.3s ease-out;
}

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

/* User Avatar Styles */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    background: #fff;
    transition: all 0.2s ease;
}

.user-avatar:hover {
    border-color: var(--primary-dark);
    transform: scale(1.05);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
    background: #fff;
}

.avatar-img-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Initials Avatar Styles */
.avatar-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #87CEEB 0%, #58c1eb 100%);
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.avatar-initials-sm {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #87CEEB 0%, #58c1eb 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.avatar-initials-lg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #87CEEB 0%, #58c1eb 100%);
    color: white;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    padding: 12px;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    margin-top: 12px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 16px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
}

.dropdown-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(135, 206, 235, 0.2) 100%);
    color: var(--text-main);
    transform: translateX(4px);
}

.dropdown-item:hover i {
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #ffeaea 0%, rgba(220, 53, 69, 0.1) 100%);
    color: #dc3545;
}

.dropdown-item.text-danger:hover i {
    color: #dc3545;
}

.dropdown-divider {
    margin: 8px 0;
    border-color: rgba(0, 0, 0, 0.05);
}

.nav-link.dropdown-toggle::after {
    display: none;
}

.nav-link.dropdown-toggle:focus {
    outline: none;
}

/* Fiverr Inspired Enhancements */

.tag-link {
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: white;
    color: var(--primary-dark);
}

.grayscale img {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.grayscale img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.popular-services-scroll {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.popular-services-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-icon-card {
    border-radius: 20px !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
}

.category-icon {
    transition: transform 0.4s ease;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 1.25rem !important;
}

.category-icon-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06) !important;
}

.category-icon-card:hover .category-icon {
    transform: scale(1.05);
    background: var(--primary-light);
}

.category-icon-card h6 {
    font-size: 11.5px;
    font-weight: 700;
}

.min-vh-40 {
    min-height: 350px;
}

.bg-light-blue {
    background-color: #f1f9ff;
}

.btn-white {
    background: white;
    border: none;
    color: var(--primary);
}

.business-cta-banner {
    background: #0d084d !important;
}

.list-unstyled li i {
    font-size: 1.2rem;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.hover-up {
    transition: all 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.recent-job-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.recent-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
    border-color: var(--primary) !important;
}

/* ============================================
   RESPONSIVE STYLES FOR ALL DEVICES
   ============================================ */

/* Extra Small Devices (Phones, < 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }
    
    .hero-section {
        min-height: 450px;
        padding: 60px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .search-container {
        padding: 15px !important;
        width: 100% !important;
    }
    
    .search-container .btn {
        width: 100%;
        margin-top: 10px;
    }
    
    .popular-tags {
        display: none !important;
    }
    
    .category-icon {
        height: 60px !important;
    }
    
    .category-icon i {
        font-size: 1.5rem !important;
    }
    
    .values-section .d-flex {
        gap: 15px !important;
        flex-wrap: wrap;
        justify-content: center !important;
    }
    
    .footer {
        padding: 40px 0 30px;
        margin-top: 60px;
    }
    
    .footer h5 {
        font-size: 14px;
        margin-bottom: 1rem;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .business-cta-banner {
        padding: 30px 20px !important;
    }
    
    .business-cta-banner h2 {
        font-size: 1.5rem !important;
    }
    
    .business-cta-banner .lead {
        font-size: 1rem;
    }
    
    .work-step-icon {
        width: 60px !important;
        height: 60px !important;
    }
    
    .work-step-icon i {
        font-size: 1.5rem !important;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    .auth-card {
        padding: 30px 20px !important;
    }
    
    .auth-card .btn-primary {
        width: 100%;
        float: none !important;
    }
    
    .video-placeholder {
        margin-top: 30px;
    }
    
    .col-lg-2.col-md-4.col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Small Devices (Landscape Phones, ≥576px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        font-size: 13px;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .search-container {
        max-width: 100% !important;
    }
    
    .category-icon {
        height: 70px !important;
    }
    
    .category-icon i {
        font-size: 1.75rem !important;
    }
    
    .footer {
        padding: 60px 0 40px;
    }
    
    .business-cta-banner {
        padding: 40px 30px !important;
    }
    
    .work-step-icon {
        width: 70px !important;
        height: 70px !important;
    }
    
    .col-lg-2.col-md-4.col-6 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Medium Devices (Tablets, ≥768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 550px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .search-container {
        max-width: 100% !important;
    }
    
    .footer {
        padding: 70px 0 40px;
    }
    
    .col-lg-2.col-md-4.col-6 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

/* Large Devices (Desktops, ≥992px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 580px;
    }
    
    .search-container {
        max-width: 100% !important;
    }
}

/* Extra Large Devices (Large Desktops, ≥1200px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hero-section {
        min-height: 600px;
    }
}

/* XXL Devices (≥1400px) */
@media (min-width: 1400px) {
    .hero-section {
        min-height: 650px;
    }
}

/* Smooth Scrolling for Anchor Links */
html {
    scroll-behavior: smooth;
}

/* Scroll Offset for Fixed Navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .search-container {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #f5f5f5;
    }
    
    .card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .footer {
        background: #252525;
    }
    
    .form-control,
    .form-select {
        background: #333;
        border-color: #404040;
        color: #f5f5f5;
    }
    
    .category-icon {
        background: #333;
    }
    
    .text-muted {
        color: #adb5bd !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =================NOTIFICATION STYLES================= */
.notification-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification-toast {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(135, 206, 235, 0.3);
    animation: slideIn 0.3s ease-out;
    max-width: 100%;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.nf-unread { background: #fffbf0 !important; }

.notification-toast .toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.notification-toast .toast-header strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.notification-toast .toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
}

.notification-toast .toast-close:hover {
    color: var(--danger);
}

.notification-toast .toast-body {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-toast .toast-action {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.notification-toast .toast-action:hover {
    background: var(--primary-dark);
}

/* Notification Bell & Panel */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.notification-bell:hover {
    background: rgba(135, 206, 235, 0.1);
}

.notification-bell i {
    font-size: 20px;
    color: var(--text-muted);
}

#notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

#notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 10000;
    display: none;
    overflow: hidden;
    border: 1px solid #eee;
}

#notification-panel.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

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

.notification-panel-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-light);
}

.notification-panel-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#mark-all-notifications-read {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

#mark-all-notifications-read:hover {
    text-decoration: underline;
}

#notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item.unread::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 18px;
}

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

.notification-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.notification-message {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    align-self: center;
    margin-left: 8px;
}

/* =================CHAT STYLES================= */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chat-header .participant-info h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header .participant-info span {
    font-size: 12px;
    opacity: 0.9;
}

.chat-actions button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.chat-actions button:hover {
    background: rgba(255,255,255,0.3);
}

#messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    position: relative;
}

.other-message {
    background: #f0f0f0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.own-message {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 11px;
    opacity: 0.8;
}

.own-message .message-header {
    color: rgba(255,255,255,0.9);
}

.message-body {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.read-receipt {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 8px;
    vertical-align: middle;
}

#typing-indicator {
    padding: 8px 24px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    display: none;
    background: #f9f9f9;
}

.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    background: #fafafa;
}

.chat-input-area input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input[type="text"]:focus {
    border-color: var(--primary);
}

.chat-input-area button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-input-area button:hover {
    background: var(--primary-dark);
}

.chat-input-area button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Typing indicator animation */
.typing-dots {
    display: inline-flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

