@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --primary-accent: #e31837; /* Crimson Red */
    --primary-green: #e31837; /* Mapped to accent for backward compatibility */
    --primary-red: #e31837; /* Mapped to accent */
    --accent-hover: #b3122b;
    --bg-dark: #050505; /* Deep black */
    --bg-card: #111111; /* Slightly lighter for cards */
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #222222;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    --glow: 0 0 15px rgba(227, 24, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 96px; /* offset for fixed navbar */
    overflow-x: hidden;
}

/* Scrollbar styling for inner containers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-accent);
}

/* ─── NAVIGATION (matches index.html navbar exactly) ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.85) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 20px rgba(0,0,0,0.4);
    overflow: visible;
}

/* Logo — left */
.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand img {
    height: 48px;
    max-height: 48px;
    width: auto;
    max-width: 160px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.nav-brand img:hover {
    transform: scale(1.05);
}

/* Nav links — absolutely centered */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.25s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 1px;
    background: #e31837;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Sign In / Profile — right */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}

.nav-auth a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.25s;
}

.nav-auth a:hover {
    color: #fff;
}

/* Profile icon (injected by JS when logged in) */
.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e31837;
    font-size: 1.4rem;
    transition: color 0.25s;
}

.profile-dropdown .hover-username {
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
    color: #fff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-dropdown:hover .hover-username {
    max-width: 150px;
    opacity: 1;
}

.profile-dropdown:hover {
    color: #ff2244;
}

/* Dropdown Simulation for Language/Profile & Management Console */
.nav-item-dropdown {
    position: relative;
    cursor: pointer;
    font-weight: 600;
}

.nav-item-dropdown span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mgmt-dropdown {
    position: relative;
    display: inline-block;
}

.mgmt-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background-color: #111111;
    min-width: 190px;
    padding-top: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06);
    z-index: 9999;
    border-radius: 10px;
    border: 1px solid #222222;
    overflow: hidden;
}

.mgmt-dropdown-content a {
    color: var(--text-light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.mgmt-dropdown-content a:last-child {
    border-bottom: none;
}

.mgmt-dropdown-content a:hover {
    background-color: var(--bg-card-hover);
    color: var(--primary-accent);
}

.mgmt-dropdown:hover .mgmt-dropdown-content {
    display: block;
}

.mgmt-dropdown-btn {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.mgmt-dropdown-btn:hover {
    color: var(--primary-accent);
}

/* Main Layout Container */
.main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.home-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Hero Section (Compact) */
.hero-section {
    text-align: center;
    padding: 1rem;
    flex-shrink: 0;
}

.hero-section h1 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.search-bar-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.search-input {
    padding: 0.8rem;
    width: 400px;
    border: 2px solid var(--primary-green);
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 1rem;
}

.search-btn {
    padding: 0.8rem 2rem;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s;
}

.search-btn:hover {
    background-color: #1a5c1c;
}

/* Dashboard Grid */
.dashboard-grid {
    display: flex;
    flex: 1;
    gap: 1.5rem;
    overflow: hidden;
    /* Lock height */
    padding-bottom: 1rem;
}

/* Left Panel: Recent Quotes (16:9 ish) */
.dashboard-left {
    flex: 2;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--primary-accent);
    overflow-y: auto;
}

/* Right Panel: Services (9:16 ish) */
.dashboard-right {
    flex: 1.2;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--border-color);
    overflow-y: auto;
}

.section-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary-accent);
}

/* Quote Cards */
.quote-card {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.quote-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-accent);
}

.quote-card:hover::before {
    opacity: 1;
}

.quote-info h3 {
    color: var(--text-light);
    margin-bottom: 3px;
}
.quote-info p {
    color: var(--text-muted);
}

.quote-price {
    color: var(--primary-accent);
    font-size: 1.2rem;
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-btn {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 1.5rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.service-btn:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    color: var(--text-light);
    border-color: var(--primary-accent);
}

.service-btn i {
    font-size: 2.5rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.service-btn:hover i {
    color: var(--primary-accent);
    filter: drop-shadow(0 0 8px rgba(227, 24, 55, 0.6));
}

/* Floating Chatbot Toggle */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(227, 24, 55, 0.4), var(--glow);
    z-index: 2000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 25px rgba(227, 24, 55, 0.6), 0 0 25px rgba(227, 24, 55, 0.5);
}

/* Glassmorphic Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 360px;
    height: 480px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(227, 24, 55, 0.15);
    display: none;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* Chatbot Header */
.chatbot-header {
    background: rgba(10, 10, 10, 0.95);
    color: white;
    padding: 1.1rem 1.2rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Chatbot Body */
.chatbot-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    background: rgba(5, 5, 5, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message styling */
.msg {
    padding: 0.75rem 1rem;
    border-radius: 14px;
    max-width: 85%;
    font-size: 0.82rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: messageFadeIn 0.3s ease forwards;
}

@keyframes messageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-msg {
    background: rgba(26, 26, 26, 0.9);
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px 14px 14px 2px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.user-msg {
    background: var(--primary-accent);
    color: white;
    border-radius: 14px 14px 2px 14px;
    align-self: flex-end;
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.25);
}

/* Links and highlights in Bot Messages */
.bot-msg a {
    color: var(--primary-accent);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}

.bot-msg a:hover {
    color: var(--accent-hover);
}

/* Chatbot Footer */
.chatbot-footer {
    padding: 0.9rem 1.2rem;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-footer input {
    flex: 1;
    padding: 0.65rem 1rem;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    outline: none;
    color: white;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.chatbot-footer input:focus {
    border-color: var(--primary-accent);
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 0 10px rgba(227, 24, 55, 0.3);
}

.chatbot-footer input::placeholder {
    color: #666;
}

.chatbot-footer button {
    background: var(--primary-accent);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(227, 24, 55, 0.3);
    transition: all 0.25s ease;
}

.chatbot-footer button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.5);
}

/* Chatbot Header Actions (New Chat button) */
.chatbot-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-actions i {
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.25s ease;
    font-size: 0.85rem;
}

.chatbot-header-actions i:hover {
    opacity: 1;
    transform: scale(1.15);
    color: var(--primary-accent);
}

/* Chatbot Feedback Overlay */
.chatbot-feedback-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 1.8rem;
    animation: chatFeedbackFadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes chatFeedbackFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.chatbot-feedback-overlay h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chatbot-feedback-overlay p {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 1.4rem;
    text-align: center;
}

/* Star Rating */
.chatbot-star-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.chatbot-star-rating i {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-star-rating i:hover,
.chatbot-star-rating i.active {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    transform: scale(1.2);
}

.chatbot-star-rating i.hovered {
    color: #ffd54f;
}

/* Feedback Textarea */
.chatbot-feedback-textarea {
    width: 100%;
    min-height: 70px;
    max-height: 100px;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    padding: 0.7rem 0.9rem;
    resize: none;
    outline: none;
    margin-bottom: 1.2rem;
    transition: all 0.25s ease;
}

.chatbot-feedback-textarea:focus {
    border-color: var(--primary-accent);
    background: rgba(30, 30, 30, 0.8);
    box-shadow: 0 0 8px rgba(227, 24, 55, 0.25);
}

.chatbot-feedback-textarea::placeholder {
    color: #555;
}

/* Feedback Buttons */
.chatbot-feedback-btns {
    display: flex;
    gap: 10px;
    width: 100%;
}

.chatbot-feedback-btns button {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.chatbot-feedback-btns .fb-submit {
    background: var(--primary-accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(227, 24, 55, 0.25);
}

.chatbot-feedback-btns .fb-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4);
}

.chatbot-feedback-btns .fb-skip {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-feedback-btns .fb-skip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Feedback Thank You State */
.chatbot-thankyou {
    text-align: center;
    animation: chatFeedbackFadeIn 0.3s ease;
}

.chatbot-thankyou i {
    font-size: 2.5rem;
    color: #4caf50;
    margin-bottom: 0.8rem;
    display: block;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.chatbot-thankyou h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.chatbot-thankyou p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* FORMS (Quotes/Auth) */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 2px rgba(227, 24, 55, 0.2);
}

.btn-primary {
    background-color: var(--primary-accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--glow);
}

.btn-edit {
    background-color: #28a745;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background-color: #218838;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background-color: var(--primary-accent);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #ff3333; /* Even brighter red on hover */
    box-shadow: var(--glow);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}
.btn-secondary:hover { background-color: #444; }

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.data-table th {
    background: #444;
    color: white;
}

.data-table tr:hover {
    background: #2a2a2a;
}

/* Responsive Handling */
@media (max-width: 900px) {
    body {
        height: auto;
        overflow: auto;
    }

    .dashboard-grid {
        flex-direction: column;
        overflow: visible;
        height: auto;
    }

    .hero-section {
        margin-top: 1rem;
    }

    .nav-links {
        display: none;
        /* Hide nav links on small screens for prototype */
    }
}

/* Knowledge Hub Split View */
.knowledge-split-view {
    display: flex;
    gap: 2rem;
    height: 100%;
    /* Ensure it takes full height of content area */
    overflow: hidden;
    /* Hide overflow of parent */
}

.sticky-image-col {
    flex: 1;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 100%;
}

.scrollable-info-col {
    flex: 1.5;
    overflow-y: auto;
    padding-right: 1rem;
    /* Space for scrollbar */
    max-height: 600px;
    /* Limit height to force scroll if needed, or rely on flex parent */
}

/* Custom Scrollbar for info col */
.scrollable-info-col::-webkit-scrollbar {
    width: 6px;
}

.scrollable-info-col::-webkit-scrollbar-thumb {
    background-color: var(--primary-green);
    border-radius: 4px;
}

/* Profile Modal */
#profile-modal {
    display: none; 
    position: absolute; 
    top: 96px; 
    right: 2rem; 
    background: white; 
    padding: 1.5rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); 
    z-index: 3000; 
    border: 1px solid #ddd; 
    width: 280px;
}

#profile-modal h3 {
    margin-bottom: 15px; 
    color: var(--primary-green);
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

#profile-modal p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

#profile-modal hr {
    margin: 15px 0; 
    border: 0; 
    border-top: 1px solid #eee;
}

/* Profile Dropdown Hover Effects */
.profile-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 1.5rem;
}

.hover-username {
    font-size: 1rem;
    font-weight: 600;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.profile-dropdown:hover .hover-username {
    max-width: 150px;
    opacity: 1;
}

/* ==========================================================================
   PREMIUM CUSTOM MODAL & TOAST NOTIFICATION SYSTEM
   ========================================================================== */

/* Toast Container */
.custom-toast-container {
    position: fixed;
    top: 105px; /* placed below the fixed navbar */
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Individual Toast Item */
.custom-toast {
    pointer-events: auto;
    width: 340px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border-radius: 8px;
    padding: 14px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.4s ease;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Toast Icon & Accents */
.custom-toast-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.custom-toast.success {
    border-left: 4px solid #2ec4b6;
}
.custom-toast.success .custom-toast-icon {
    color: #2ec4b6;
}

.custom-toast.error {
    border-left: 4px solid var(--primary-accent);
}
.custom-toast.error .custom-toast-icon {
    color: var(--primary-accent);
}

.custom-toast.warning {
    border-left: 4px solid #ff9f1c;
}
.custom-toast.warning .custom-toast-icon {
    color: #ff9f1c;
}

.custom-toast.info {
    border-left: 4px solid #00b4d8;
}
.custom-toast.info .custom-toast-icon {
    color: #00b4d8;
}

.custom-toast-body {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Modal Overlay */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Card */
.custom-modal-card {
    width: 90%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Top Glow Line */
.custom-modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-accent);
}

.custom-modal-overlay.show .custom-modal-card {
    transform: scale(1);
    opacity: 1;
}

/* Types of Glow Header */
.custom-modal-card.success::before { background: #2ec4b6; }
.custom-modal-card.error::before { background: var(--primary-accent); }
.custom-modal-card.warning::before { background: #ff9f1c; }
.custom-modal-card.info::before { background: #00b4d8; }

/* Modal Icon */
.custom-modal-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.75rem;
}

.success .custom-modal-icon-wrapper {
    background: rgba(46, 196, 182, 0.1);
    color: #2ec4b6;
    border: 1px solid rgba(46, 196, 182, 0.25);
}

.error .custom-modal-icon-wrapper {
    background: rgba(227, 24, 55, 0.1);
    color: var(--primary-accent);
    border: 1px solid rgba(227, 24, 55, 0.25);
}

.warning .custom-modal-icon-wrapper {
    background: rgba(255, 159, 28, 0.1);
    color: #ff9f1c;
    border: 1px solid rgba(255, 159, 28, 0.25);
}

.info .custom-modal-icon-wrapper {
    background: rgba(0, 180, 216, 0.1);
    color: #00b4d8;
    border: 1px solid rgba(0, 180, 216, 0.25);
}

/* Modal Typography */
.custom-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.custom-modal-message {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Modal Actions */
.custom-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-modal-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.custom-modal-btn-confirm {
    background: var(--primary-accent);
    color: white;
}

.custom-modal-btn-confirm:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4);
}

.custom-modal-btn-confirm.success { background: #2ec4b6; }
.custom-modal-btn-confirm.success:hover { background: #239b90; box-shadow: 0 4px 15px rgba(46, 196, 182, 0.4); }

.custom-modal-btn-confirm.warning { background: #ff9f1c; }
.custom-modal-btn-confirm.warning:hover { background: #e08a10; box-shadow: 0 4px 15px rgba(255, 159, 28, 0.4); }

.custom-modal-btn-confirm.info { background: #00b4d8; }
.custom-modal-btn-confirm.info:hover { background: #0093b0; box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4); }

.custom-modal-btn-cancel {
    background: #1a1a1a;
    color: var(--text-muted);
    border: 1px solid #333;
}

.custom-modal-btn-cancel:hover {
    background: #242424;
    color: var(--text-light);
    transform: translateY(-2px);
}

