body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #181a20 0%, #23272f 100%);
    color: #e4e6eb;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.01em;
}
.header {
    background: #20232a;
    color: #fff;
    padding: 0 32px;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    border-bottom: 1px solid #23272f;
    box-shadow: 0 2px 8px #000a, 0 1.5px 0 #23272f;
    backdrop-filter: blur(6px);
}
.header .left {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
.header .site-title {
    font-size: 1.18em;
    font-weight: 700;
    color: #61dafb;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #0004;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.header .site-title:hover {
    color: #ffffff;
    text-shadow: 
        0 0 5px #61dafb,
        0 0 10px #61dafb,
        0 0 15px #61dafb,
        0 0 20px #61dafb;
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.1), rgba(97, 218, 251, 0.05));
    border: 1px solid rgba(97, 218, 251, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(97, 218, 251, 0.3);
}

.header .site-title:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header .site-title:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(97, 218, 251, 0.2);
}
.header .search-bar {
    min-width: 640px;
    width: 100%;
    max-width: 800px;
    font-size: 1.18em;
    padding: 10px 28px;
    margin-left: 24px;
    margin-right: 0;
    display: inline-block;
    box-sizing: border-box;
    background: #23272f;
    color: #e4e6eb;
    border: 1.5px solid #333;
    border-radius: 24px;
    height: 44px;
    transition: width 0.3s, min-width 0.3s, max-width 0.3s, border 0.2s, box-shadow 0.2s;
}
.header .search-bar:focus {
    border: 1.5px solid #61dafb;
    box-shadow: 0 2px 8px #61dafb33;
}
.header .right {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}
.header .icon-btn {
    background: none;
    border: none;
    color: #e4e6eb;
    font-size: 1.1em;
    cursor: pointer;
    position: relative;
    margin-right: 4px;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.header .icon-btn:hover {
    background: #23272f;
    color: #61dafb;
}
.header .icon-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.7em;
    border-radius: 50%;
    padding: 2px 6px;
    font-weight: bold;
}
.header .profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85em;
    border-radius: 18px;
    padding: 4px 12px 4px 4px;
    transition: all 0.2s ease;
    user-select: none;
}
.header .profile-dropdown:hover {
    background: rgba(255, 255, 255, 0.1);
}
.header .profile-dropdown.active {
    background: rgba(255, 255, 255, 0.15);
}
.header .profile-dropdown span {
    margin-left: 2px;
    font-weight: 500;
}
.header .profile-dropdown .fa-caret-down {
    margin-left: 6px;
    transition: transform 0.2s ease;
    font-size: 0.8em;
}
.header .profile-dropdown.active .fa-caret-down {
    transform: rotate(180deg);
}
.header .profile-dropdown img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #61dafb;
    margin-right: 6px;
    box-shadow: 0 2px 8px #0004;
}
.header .profile-dropdown .dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #23272f;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
    border: 1px solid #3a3f46;
    animation: fadeIn 0.2s ease-out;
    min-width: 180px;
    z-index: 9999;
    overflow: hidden;
}
.header .profile-dropdown.active .dropdown {
    display: block;
}
.header .profile-dropdown .dropdown a {
    display: block;
    color: #e4e6eb;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    font-size: 0.9em;
    white-space: nowrap;
}
.header .profile-dropdown .dropdown a:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.header .profile-dropdown .dropdown a:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.header .profile-dropdown .dropdown a:hover {
    background: #2d3339;
    color: #61dafb;
    transform: translateX(2px);
}

/* Login button styling */
.header .login-btn {
    background: linear-gradient(135deg, #61dafb 0%, #4fa8d8 100%);
    color: #181a20;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(97, 218, 251, 0.3);
    color: #181a20;
}

/* Main navigation styles */
.header .main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    margin-right: 20px;
}

.header .main-nav .nav-link {
    color: #e4e6eb;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header .main-nav .nav-link:hover {
    background: rgba(97, 218, 251, 0.1);
    color: #61dafb;
    border-color: rgba(97, 218, 251, 0.3);
    transform: translateY(-1px);
}

.header .main-nav .nav-link.active {
    background: rgba(97, 218, 251, 0.15);
    color: #61dafb;
    border-color: rgba(97, 218, 251, 0.4);
}

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

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

/* Notification message animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

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

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    top: 68px;
    width: 260px;
    background: linear-gradient(135deg, #20232a 60%, #23272f 100%);
    border-right: 1px solid #23272f;
    padding: 0 0 20px 0;
    height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 12px #0003;
}
.sidebar-left {
    left: 0;
}
.sidebar-right {
    right: 0;
    border-left: 1px solid #23272f;
    border-right: none;
    box-shadow: -2px 0 8px #0003;
}
.main-content {
    margin-left: 260px;
    margin-right: 260px;
    padding: 40px 32px 32px 32px;
    min-height: calc(100vh - 68px);
    background: linear-gradient(135deg, #23272f 60%, #181a20 100%);
    border-radius: 18px;
    box-shadow: 0 2px 16px #0003;
    overflow-y: auto;
}
.profile-section {
    display: flex;
    align-items: center;
    padding: 26px 26px 14px 26px;
    border-bottom: 1px solid #23272f;
    background: #23272f;
    border-radius: 0 0 12px 0;
    box-shadow: 0 2px 8px #0002;
}
.profile-section img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-right: 16px;
    border: 2px solid #61dafb;
    box-shadow: 0 2px 8px #0004;
}
.profile-section .profile-info {
    display: flex;
    flex-direction: column;
}
.profile-section .profile-info .name {
    font-weight: bold;
    font-size: 1.13em;
    color: #fff;
}
.profile-section .profile-info .status {
    color: #b0b3b8;
    font-size: 0.97em;
}
nav ul {
    list-style: none;
    padding: 0 26px;
    margin: 0;
}
nav ul li {
    margin: 8px 0;
}
nav ul li a {
    color: #e4e6eb;
    text-decoration: none;
    font-size: 0.93em;
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 7px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    letter-spacing: 0.01em;
}
nav ul li a:hover {
    background: #23272f;
    color: #61dafb;
}
nav ul li a.active, nav ul li a:focus {
    background: #181a20;
    color: #61dafb;
}
nav ul li a i {
    margin-right: 8px;
    font-size: 1em;
}
.nav-label {
    font-size: 0.93em;
    letter-spacing: 0;
}
.friends-section {
    padding: 20px 26px 0 26px;
    background: #23272f;
    border-radius: 0 0 12px 0;
    box-shadow: 0 2px 8px #0002;
}
.friends-section h4 {
    color: #61dafb;
    margin-bottom: 12px;
    font-size: 1em;
}
.friends-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.friends-list li {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    transition: background 0.2s;
    border-radius: 6px;
    padding: 4px 6px;
}
.friends-list li:hover {
    background: #181a20;
}
.friends-list img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #333;
}
.friends-list .online {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    margin-left: auto;
}
/* --- Right Sidebar --- */
.notifications-section, .chat-section, .suggestions-section, .trending-section, .now-watching-section {
    padding: 20px 26px 0 26px;
}
.notifications-section h4, .chat-section h4, .suggestions-section h4, .trending-section h4, .now-watching-section h4 {
    color: #61dafb;
    margin-bottom: 12px;
    font-size: 1em;
}
.notifications-list, .chat-list, .suggestions-list, .trending-list, .now-watching-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notifications-list li, .chat-list li, .suggestions-list li, .trending-list li, .now-watching-list li {
    margin-bottom: 15px;
    color: #b0b3b8;
    font-size: 0.99em;
}
.suggestions-list li a, .trending-list li a {
    color: #e4e6eb;
    text-decoration: none;
    font-size: 1em;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    padding: 8px 0;
}
.suggestions-list li a:hover, .trending-list li a:hover {
    background: #23272f;
    color: #61dafb;
}
.suggestions-list li a i, .trending-list li a i {
    margin-right: 10px;
    font-size: 1.1em;
}
.now-watching-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.now-watching-list img {
    width: 32px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #23272f;
}
/* --- Main Content --- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    background: #20232a;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 8px #0002;
    border: 1px solid #23272f;
}
.filter-bar select, .filter-bar input {
    background: #181a20;
    color: #e4e6eb;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 1em;
    outline: none;
    font-weight: 500;
}
.filter-bar select:focus, .filter-bar input:focus {
    border: 1.5px solid #61dafb;
}
.activity-feed {
    background: #20232a;
    border-radius: 12px;
    padding: 20px 26px;
    margin-bottom: 36px;
    box-shadow: 0 2px 8px #0003;
}
.activity-feed h3 {
    color: #61dafb;
    margin-bottom: 14px;
}

/* Chat Messages Container - Scrollable */
#messagesContainer {
    max-height: 400px;
    overflow-y: scroll !important; /* Force scrollbar to always show */
    overflow-x: hidden;
    padding-right: 4px;
    margin-bottom: 20px;
    border-radius: 8px;
    scroll-behavior: smooth;
    position: relative;
    min-height: 200px; /* Ensure minimum height */
    border: 1px solid rgba(97, 218, 251, 0.1); /* Add border to see container bounds */
    /* Force scrollbar to always be visible */
    scrollbar-gutter: stable;
}

/* Custom Scrollbar for Chat Container */
#messagesContainer::-webkit-scrollbar {
    width: 14px;
    background: #1a1c22;
}

#messagesContainer::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #181a20 0%, #1a1c22 100%);
    border-radius: 7px;
    margin: 2px;
    border: 1px solid rgba(97, 218, 251, 0.2);
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

#messagesContainer::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #61dafb 0%, #4fc3f7 50%, #29b6f6 100%);
    border-radius: 7px;
    border: 2px solid rgba(97, 218, 251, 0.4);
    box-shadow: 
        0 2px 8px rgba(97, 218, 251, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 40px; /* Ensure minimum thumb size for visibility */
}

#messagesContainer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 50%, #0288d1 100%);
    box-shadow: 
        0 4px 15px rgba(97, 218, 251, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 0 15px rgba(97, 218, 251, 0.4);
    border: 2px solid rgba(97, 218, 251, 0.6);
    transform: scale(1.05);
}

#messagesContainer::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 50%, #0277bd 100%);
    box-shadow: 
        0 2px 8px rgba(97, 218, 251, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(97, 218, 251, 0.7);
    transform: scale(1.02);
}

/* Firefox Scrollbar and Fallback */
#messagesContainer {
    scrollbar-width: auto; /* Show scrollbar in Firefox */
    scrollbar-color: #61dafb #181a20;
}

/* For browsers that don't support custom scrollbars */
@supports not selector(::-webkit-scrollbar) {
    #messagesContainer {
        border-right: 3px solid #61dafb;
        padding-right: 1px;
    }
}

/* Chat fade-in effect when messages are empty */
#messagesContainer:empty::before {
    content: "Loading messages...";
    display: block;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
}

/* Chat Container */
.chat-container {
    position: relative;
}

/* Scroll to Bottom Button */
.scroll-to-bottom-btn {
    position: absolute;
    bottom: 30px;
    right: 20px;
    background: linear-gradient(135deg, #61dafb 0%, #4fc3f7 100%);
    color: #181a20;
    border: none;
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(97, 218, 251, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(97, 218, 251, 0.3);
}

.scroll-to-bottom-btn:hover {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(97, 218, 251, 0.4);
}

.scroll-to-bottom-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(97, 218, 251, 0.3);
}

.scroll-to-bottom-btn i {
    font-size: 0.8rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

.activity-feed {
    background: #20232a;
    border-radius: 12px;
    padding: 20px 26px;
    margin-bottom: 36px;
    box-shadow: 0 2px 8px #0003;
}

/* Ensure messages have enough height to trigger scrolling */
.activity-post {
    background: #181a20;
    border-radius: 8px;
    padding: 15px 18px;
    margin-bottom: 18px;
    color: #e4e6eb;
    box-shadow: 0 1px 4px #0002;
    border-left: 4px solid #61dafb;
    min-height: 60px; /* Ensure minimum height for each message */
}



.activity-post .author {
    color: #61dafb;
    font-weight: 600;
}

.activity-post .time {
    color: #8a8d91;
    font-size: 0.85em;
    margin-left: 8px;
}
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 24px;
}
.movie-card {
    background: #23272f;
    border-radius: 10px;
    border: 1.5px solid #23272f;
    box-shadow: 0 2px 16px #0005;
    padding: 14px 10px 18px 10px;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.2s, border 0.2s;
    overflow: hidden;
    position: relative;
}
.movie-card:hover {
    border: 1.5px solid #61dafb;
    box-shadow: 0 6px 24px #61dafbaa;
    transform: translateY(-6px) scale(1.045);
}
.movie-card img {
    width: 100%;
    border-radius: 10px;
    height: 270px;
    object-fit: cover;
    background: #181a20;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px #0003;
}
.movie-card h3 {
    margin: 10px 0 4px 0;
    font-size: 1.13em;
    color: #fff;
}
.movie-card p {
    margin: 0;
    color: #b0b3b8;
    font-size: 0.97em;
}
.year {
    display: inline-block;
    margin-top: 7px;
    color: #61dafb;
    font-size: 0.93em;
}
.movie-card .review-btn {
    margin-top: 14px;
    background: #61dafb;
    color: #181a20;
    border: none;
    border-radius: 5px;
    padding: 6px 16px;
    font-size: 0.97em;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.movie-card .review-btn:hover {
    background: #21a1f3;
    color: #fff;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 0 0;
}
.pagination button {
    background: #23272f;
    color: #e4e6eb;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 7px 14px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}
.pagination button.active, .pagination button:hover {
    background: #61dafb;
    color: #181a20;
}
/* Profile Form Styles */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #e1e4e8;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: #e1e4e8;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #61dafb;
    box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.1);
}

.form-input:invalid {
    border-color: rgba(239, 68, 68, 0.5);
}

.form-hint {
    color: #a0a6b8;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

.avatar-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.avatar-preview img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(97, 218, 251, 0.3);
}

.avatar-info h4 {
    color: #e1e4e8;
    font-weight: 500;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.avatar-info p {
    color: #a0a6b8;
    font-size: 12px;
    margin: 0;
}
@media (max-width: 1200px) {
    .sidebar, .sidebar-right {
        display: none;
    }
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 10px;
    }
}
footer {
    text-align: center;
    padding: 16px;
    background: linear-gradient(90deg, #20232a 60%, #23272f 100%);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 -2px 8px #0002;
    color: #b0b3b8;
    margin-top: 60px;
    font-size: 0.98em;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
footer .footer-links {
    margin-top: 8px;
    color: #61dafb;
    font-size: 0.97em;
    font-weight: 500;
}
footer .footer-links a {
    color: #61dafb;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.97em;
}
footer .footer-links a:hover {
    color: #fff;
}

/* Alert Styles */
.alert {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.alert.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* Dark Theme Form Select Styles */
select.form-input, 
select {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    color: #e1e4e8 !important;
    font-size: 14px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e4e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    cursor: pointer !important;
}

select.form-input:focus, 
select:focus {
    outline: none !important;
    border-color: #61dafb !important;
    box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.1) !important;
}

select.form-input:hover, 
select:hover {
    border-color: rgba(255,255,255,0.3) !important;
}

/* Dark theme option styles - Enhanced for all browsers */
select option {
    background: #1a1d24 !important;
    background-color: #1a1d24 !important;
    color: #e1e4e8 !important;
    padding: 8px 12px !important;
    border: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

select option:hover {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
    color: #61dafb !important;
}

select option:checked,
select option:selected {
    background: #61dafb !important;
    background-color: #61dafb !important;
    color: #1a1d24 !important;
}

/* Additional option styling for webkit browsers */
select option:focus {
    background: #2d3748 !important;
    background-color: #2d3748 !important;
    color: #61dafb !important;
}

/* Specific fixes for webkit browsers */
select::-webkit-scrollbar {
    width: 8px;
    background: #1a1d24;
}

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

select::-webkit-scrollbar-thumb:hover {
    background: #61dafb;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
    select {
        background: rgba(255,255,255,0.05) !important;
        color: #e1e4e8 !important;
    }
    
    select option {
        background: #1a1d24 !important;
        color: #e1e4e8 !important;
    }
}

/* Enhanced form input styles for consistency */
.form-input:not(select) {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #e1e4e8 !important;
}

.form-input:not(select):focus {
    border-color: #61dafb !important;
    box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.1) !important;
}

.form-input:not(select):hover {
    border-color: rgba(255,255,255,0.3) !important;
}

/* Placeholder styles for dark theme */
.form-input::placeholder {
    color: #a0a6b8 !important;
    opacity: 1 !important;
}

.form-input::-webkit-input-placeholder {
    color: #a0a6b8 !important;
}

.form-input::-moz-placeholder {
    color: #a0a6b8 !important;
    opacity: 1 !important;
}

.form-input:-ms-input-placeholder {
    color: #a0a6b8 !important;
}

/* File input dark theme styles */
input[type="file"].form-input {
    padding: 8px 12px !important;
    border: 2px dashed rgba(255,255,255,0.2) !important;
    background: rgba(255,255,255,0.02) !important;
    border-radius: 8px !important;
    color: #e1e4e8 !important;
    transition: all 0.3s ease !important;
}

input[type="file"].form-input:hover {
    border-color: #61dafb !important;
    background: rgba(97, 218, 251, 0.05) !important;
}

input[type="file"].form-input:focus {
    outline: none !important;
    border-color: #61dafb !important;
    box-shadow: 0 0 0 3px rgba(97, 218, 251, 0.1) !important;
}

/* File input button styling */
input[type="file"].form-input::-webkit-file-upload-button {
    background: rgba(97, 218, 251, 0.1) !important;
    border: 1px solid rgba(97, 218, 251, 0.3) !important;
    color: #61dafb !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    margin-right: 10px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.3s ease !important;
}

input[type="file"].form-input::-webkit-file-upload-button:hover {
    background: rgba(97, 218, 251, 0.2) !important;
    color: #ffffff !important;
}

/* Modern Dark Select Component */
.dark-select {
    position: relative !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

.dark-select:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)) !important;
    border-color: rgba(97, 218, 251, 0.4) !important;
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

.dark-select:focus {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05)) !important;
    border-color: #61dafb !important;
    box-shadow: 
        0 0 0 3px rgba(97, 218, 251, 0.2),
        0 2px 8px rgba(97, 218, 251, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

/* Custom dropdown arrow with better styling */
.dark-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2361dafb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 14px !important;
    padding-right: 40px !important;
}

/* Enhanced option styling for better visibility across all browsers */
.dark-select option {
    background: #1a1d24 !important;
    background-color: #1a1d24 !important;
    color: #e1e4e8 !important;
    padding: 10px 15px !important;
    border: none !important;
    font-weight: 500 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.dark-select option:checked,
.dark-select option:selected {
    background: linear-gradient(135deg, #61dafb, #4fa8d1) !important;
    background-color: #61dafb !important;
    color: #1a1d24 !important;
    font-weight: 600 !important;
}

.dark-select option:hover,
.dark-select option:focus {
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.2), rgba(97, 218, 251, 0.1)) !important;
    background-color: #2d3748 !important;
    color: #61dafb !important;
}

/* Smooth transitions for all form inputs */
.form-input,
.dark-select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* File feedback styling */
.file-feedback {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 8px !important;
    padding: 4px 8px !important;
    background: rgba(97, 218, 251, 0.1) !important;
    border: 1px solid rgba(97, 218, 251, 0.2) !important;
    border-radius: 6px !important;
    color: #61dafb !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.file-feedback::before {
    content: "✓" !important;
    color: #22c55e !important;
    font-weight: bold !important;
}

/* Notification Settings Styles */
.notification-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.notification-content h4 {
    margin: 0 0 5px;
    color: #e1e4e8;
    font-size: 16px;
    font-weight: 600;
}

.notification-content p {
    margin: 0;
    color: #a0a6b8;
    font-size: 14px;
    line-height: 1.5;
}

.notification-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.notification-badge.required {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    font-weight: 700;
    animation: pulse-security 2s infinite;
}

@keyframes pulse-security {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    }
}

/* Security Notification Special Styling */
.notification-item.security-required {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.02));
    border: 1px solid rgba(239, 68, 68, 0.2);
    position: relative;
}

.notification-item.security-required::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ef4444, #dc2626);
    border-radius: 12px 0 0 12px;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    line-height: 1.4;
}

.security-info i {
    color: #ef4444;
    flex-shrink: 0;
}

.toggle-slider.security-locked {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    cursor: not-allowed !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
}

.toggle-slider.security-locked:before {
    background: white !important;
    transform: translateX(24px) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Notification Schedule Styles */
.notification-schedule {
    display: grid;
    gap: 20px;
}

.schedule-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
}

/* Browser Permission Status */
.permission-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.permission-status.status-granted {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.permission-status.status-denied {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.permission-status.status-default {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Notification History Styles */
.notifications-list {
    display: grid;
    gap: 15px;
}

.notification-history-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.notification-history-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.notification-history-item.unread {
    background: rgba(97, 218, 251, 0.05);
    border-left: 4px solid #61dafb;
    padding-left: 16px;
}

.notification-history-item.read {
    opacity: 0.7;
}

.notification-history-item .notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    font-size: 18px;
}

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

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #e4e6eb;
    margin-bottom: 6px;
    line-height: 1.3;
}

.notification-message {
    font-size: 14px;
    color: #b0b3b8;
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 13px;
    color: #65676b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-mark-read {
    background: rgba(97, 218, 251, 0.1);
    border: 1px solid rgba(97, 218, 251, 0.3);
    color: #61dafb;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mark-read:hover:not(:disabled) {
    background: rgba(97, 218, 251, 0.2);
    color: #ffffff;
}

.read-indicator { color: #10b981; opacity: 0.7; }
/* Notification History and Actions */
.notification-history-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.notification-history-item.unread {
    background: rgba(97, 218, 251, 0.05);
    border-left: 4px solid #61dafb;
}

.notification-history-item.read { opacity: 0.7; }

.notification-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-mark-read {
    background: rgba(97, 218, 251, 0.1);
    border: 1px solid rgba(97, 218, 251, 0.3);
    color: #61dafb;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mark-read:hover:not(:disabled) {
    background: rgba(97, 218, 251, 0.2);
    color: #ffffff;
}

.read-indicator { color: #10b981; opacity: 0.7; }
/* Header Notifications Dropdown Styles */
.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    background: #23272f;
    border: 1px solid #3a3f46;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    overflow: hidden;
    animation: fadeIn 0.2s ease-out;
    --arrow-position: 20px;
    /* Ensure dropdown stays within viewport */
    transform: translateX(0);
    max-width: min(380px, calc(100vw - 40px));
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e1e4e8;
}

.mark-all-read {
    background: rgba(97, 218, 251, 0.1);
    border: 1px solid rgba(97, 218, 251, 0.3);
    color: #61dafb;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background: rgba(97, 218, 251, 0.2);
    color: #ffffff;
}

.notifications-dropdown .notifications-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

.notifications-dropdown .notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-dropdown .notifications-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.notifications-dropdown .notifications-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.notifications-dropdown .notifications-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notifications-dropdown .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
}

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

.notifications-dropdown .notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: none;
    box-shadow: none;
}

.notifications-dropdown .notification-item.unread {
    background: rgba(97, 218, 251, 0.03);
    border-left: 3px solid #61dafb;
    padding-left: 17px;
}

.notifications-dropdown .notification-item.read {
    opacity: 0.7;
}

.notifications-dropdown .notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(97, 218, 251, 0.1);
    color: #61dafb;
    flex-shrink: 0;
    font-size: 14px;
}

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

.notifications-dropdown .notification-content h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #e1e4e8;
    line-height: 1.3;
}

.notifications-dropdown .notification-content p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #b0b3b8;
    line-height: 1.4;    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notifications-dropdown .notification-time {
    font-size: 11px;
    color: #65676b;
    font-weight: 500;
}

.unread-indicator {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 8px;
    height: 8px;
    background: #61dafb;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #23272f;
}

.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #65676b;
    text-align: center;
}

.no-notifications i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-notifications p {
    margin: 0;
    font-size: 14px;
    color: #65676b;
}

.notifications-footer {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.notifications-footer a {
    color: #61dafb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.notifications-footer a:hover {
    color: #ffffff;
}

/* Legal Page Styling */
.legal-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #23272f 60%, #181a20 100%);
    border-radius: 18px;
    box-shadow: 0 2px 16px #0003;
    color: #e4e6eb;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-header h1 {
    color: #61dafb;
    font-size: 2.5em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.legal-header .last-updated {
    color: #a0a6b8;
    font-size: 14px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: #e1e4e8;
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #61dafb;
}

.legal-section h3 {
    color: #61dafb;
    font-size: 1.2em;
    margin-bottom: 10px;
    margin-top: 25px;
}

.legal-section p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #b0b3b8;
}

.legal-section ul, .legal-section ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #b0b3b8;
}

.legal-section strong {
    color: #e1e4e8;
    font-weight: 600;
}

.legal-section a {
    color: #61dafb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Legal Modal Styling */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.legal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.legal-modal-content {
    background: #23272f;
    border-radius: 12px;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #3a3f46;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.legal-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px 12px 0 0;
}

.legal-modal-header h3 {
    margin: 0;
    color: #61dafb;
    font-size: 1.3em;
    font-weight: 600;
}

.legal-modal-close {
    background: none;
    border: none;
    color: #b0b3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.legal-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #e4e6eb;
    line-height: 1.6;
}

.legal-modal-body::-webkit-scrollbar {
    width: 8px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.legal-modal-body h2 {
    color: #61dafb;
    font-size: 1.3em;
    margin-bottom: 12px;
    margin-top: 25px;
    border-left: 3px solid #61dafb;
    padding-left: 12px;
}

.legal-modal-body h2:first-child {
    margin-top: 0;
}

.legal-modal-body h3 {
    color: #e1e4e8;
    font-size: 1.1em;
    margin-bottom: 10px;
    margin-top: 20px;
}

.legal-modal-body p {
    margin-bottom: 14px;
    color: #b0b3b8;
}

.legal-modal-body ul, .legal-modal-body ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-modal-body li {
    margin-bottom: 6px;
    color: #b0b3b8;
}

.legal-modal-body strong {
    color: #e1e4e8;
}

.legal-modal-body a {
    color: #61dafb;
    text-decoration: none;
}

.legal-modal-body a:hover {
    text-decoration: underline;
}

/* Toast Notification System */
.toast-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px 0 !important;
    z-index: 100 !important;
    /* Override any fixed positioning */
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
}

.toast {
    background: linear-gradient(135deg, #20232a 0%, #181a20 100%);
    color: #e4e6eb;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
    backdrop-filter: blur(10px);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.toast.toast-error {
    border-left: 4px solid #dc267f;
    background: linear-gradient(135deg, #2a1820 0%, #201518 100%);
}

.toast.toast-success {
    border-left: 4px solid #61dafb;
    background: linear-gradient(135deg, #1a252a 0%, #151e20 100%);
}

.toast.toast-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #2a251a 0%, #201e15 100%);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e6eb;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #b0b3b8;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #61dafb, #4fc3f7, #29b6f6);
    opacity: 0.6;
}

.toast.toast-error::before {
    background: linear-gradient(90deg, #dc267f, #e91e63, #f06292);
}

.toast.toast-warning::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d);
}

/* Toast entrance animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.toast.entering {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.exiting {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

