@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;800;900&display=swap');

:root {
    --bg-color: #050508;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-cyan: #00f0ff;
    --accent-purple: #8a2be2;
    --surface-glass: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-purple);
    color: white;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Effects */
.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, rgba(138,43,226,0) 70%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

.glow-blob.top-right {
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(0,240,255,0) 70%);
}

.glow-blob.bottom-left {
    bottom: -200px;
    left: -200px;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0077ff);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}

.btn-outline:hover {
    background: var(--surface-glass);
    border-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 200px 0 100px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(138, 43, 226, 0.1);
    color: #c996ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(138, 43, 226, 0.3);
    margin-bottom: 32px;
}

/* Use Cases / Audience Section */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.audience-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.audience-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
}

.audience-card:hover::before {
    opacity: 1;
}

.audience-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}

.audience-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.audience-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: linear-gradient(180deg, var(--surface-glass) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.feature-card.highlight {
    background: linear-gradient(180deg, rgba(138,43,226,0.1) 0%, rgba(0,0,0,0) 100%);
    border-color: rgba(138,43,226,0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-cyan);
    font-size: 24px;
}

.feature-card.highlight .feature-icon {
    color: var(--accent-purple);
    background: rgba(138,43,226,0.2);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 60px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Admin Modal Styles */
.admin-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-modal.show {
    display: flex;
    opacity: 1;
}

.admin-modal-content {
    background: var(--bg-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.admin-modal.show .admin-modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-primary);
}

.admin-header {
    text-align: center;
    margin-bottom: 32px;
}

.admin-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.admin-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-step {
    display: none;
    flex-direction: column;
}

.login-step.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

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

.login-step label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.admin-input {
    width: 100%;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input:focus {
    border-color: var(--accent-cyan);
}

.otp-container {
    display: flex;
    gap: 12px;
}

.otp-container .admin-input {
    letter-spacing: 4px;
    text-align: center;
    font-weight: bold;
}

.w-100 {
    width: 100%;
}

.mt-4 {
    margin-top: 24px;
}

.error-msg {
    color: #ff4d4d;
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(5, 5, 8, 0.95);
    border: 1px solid var(--accent-purple);
    border-radius: 8px;
    padding: 16px 20px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    color: var(--accent-cyan);
}

.toast-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.toast-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Dashboard Grids */
@media (max-width: 1200px) {
    .overview-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .charts-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Dashboard Tabs */
.dash-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 16px;
}

.dash-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dash-tab:hover {
    color: var(--text-primary);
    background: var(--surface-glass);
}

.dash-tab.active {
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    font-weight: 600;
}

.dash-tab i {
    width: 16px;
    height: 16px;
}

/* Projects Hierarchy View */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card, .sequence-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-title i {
    color: var(--accent-purple);
}

.accordion-content {
    display: none;
    padding: 0 24px 24px 24px;
    border-top: 1px solid var(--surface-border);
    margin-top: 16px;
    padding-top: 16px;
}

.accordion-content.open {
    display: block;
    animation: fadeIn 0.4s ease;
}

.sequences-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sequence-card {
    background: rgba(5, 5, 8, 0.5);
}

.shots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.shot-card {
    background: var(--bg-dark);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 16px;
}

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

.shot-name {
    font-weight: 600;
    color: var(--text-primary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-wip { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); border: 1px solid rgba(0, 240, 255, 0.3); }
.status-review { background: rgba(255, 184, 77, 0.1); color: #ffb84d; border: 1px solid rgba(255, 184, 77, 0.3); }
.status-final { background: rgba(138, 43, 226, 0.1); color: var(--accent-purple); border: 1px solid rgba(138, 43, 226, 0.3); }
.status-not-started { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); border: 1px solid rgba(255, 255, 255, 0.1); }

.shot-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.shot-actions button {
    flex: 1;
    padding: 6px 0;
    font-size: 12px;
}

/* Detail Dropdown for Versions & Notes */
.shot-details {
    display: none;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--surface-border);
    font-size: 13px;
    color: var(--text-secondary);
}

.shot-details.open {
    display: block;
    animation: fadeIn 0.3s ease;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.version-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}
.version-link:hover { text-decoration: underline; }

/* AI Script Breakdown CSS */
.ai-upload-zone {
    border: 2px dashed rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.05);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.ai-upload-zone:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.ai-scanner {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
}

.pulse-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-purple);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.1); opacity: 1; }
}

.complexity-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 8px solid rgba(255, 184, 77, 0.2);
    border-top-color: #ffb84d;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.vfx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vfx-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-scene-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-left: 4px solid var(--accent-purple);
    border-radius: 8px;
    padding: 16px;
}

.ai-scene-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Asset Library CSS */
.asset-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 0 16px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    padding: 12px;
    width: 100%;
    outline: none;
}

.category-filters {
    display: flex;
    gap: 8px;
}

.cat-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-btn:hover {
    background: rgba(255,255,255,0.1);
}

.cat-btn.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.3);
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.asset-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.asset-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.asset-thumbnail {
    height: 140px;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--surface-border);
    position: relative;
}

.asset-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

.asset-info {
    padding: 16px;
}

.asset-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.asset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.asset-tag {
    font-size: 10px;
    background: rgba(255,255,255,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Team Collaboration CSS */
.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.notification-bell:hover {
    color: var(--text-primary);
}

.notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4d;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid var(--background);
}

.team-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    height: 600px;
}

.kanban-board {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.kanban-column {
    flex: 1;
    min-width: 280px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.kanban-column h3 {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 8px;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.task-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    padding: 14px;
    border-radius: 8px;
    cursor: grab;
    transition: transform 0.2s, border-color 0.2s;
}

.task-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
}

.task-card p {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

.studio-chat {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--surface-border);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-msg {
    display: flex;
    gap: 12px;
}

.chat-msg.sent {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #555;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.msg-content {
    background: rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 8px;
    border-top-left-radius: 0;
    max-width: 80%;
}

.chat-msg.sent .msg-content {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 0;
}

.msg-content strong {
    font-size: 13px;
    color: var(--text-primary);
}

.msg-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.msg-content p {
    font-size: 14px;
    margin-top: 6px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.chat-msg.sent .msg-content p {
    color: var(--text-primary);
}

.mention {
    background: rgba(138, 43, 226, 0.2);
    color: #d896ff;
    padding: 0 4px;
    border-radius: 4px;
    font-weight: 600;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--surface-border);
    display: flex;
    gap: 12px;
    background: rgba(0,0,0,0.2);
}

.chat-input-area input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    padding: 0 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--accent-cyan);
}

/* Invoice System CSS */
.invoice-table-container {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.invoice-table th {
    background: rgba(0,0,0,0.3);
    padding: 16px 24px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--surface-border);
}

.invoice-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--surface-border);
    font-size: 14px;
    vertical-align: middle;
}

.invoice-table tbody tr:last-child td {
    border-bottom: none;
}

.invoice-table tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.invoice-table .export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.invoice-table .export-actions button {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.invoice-table .export-actions button:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.status-badge.status-paid {
    background: rgba(0, 204, 102, 0.1);
    color: #00cc66;
    border: 1px solid rgba(0, 204, 102, 0.2);
}

.status-badge.status-overdue {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.status-badge.status-pending {
    background: rgba(255, 153, 51, 0.1);
    color: #ff9933;
    border: 1px solid rgba(255, 153, 51, 0.2);
}

/* Stylish Reveal Animations */
.reveal-item {
    opacity: 1; /* Fallback for when JS fails */
    transform: translateY(0px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform, filter;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* --------------------------------------------------------
   Admin Sidebar Layout
   -------------------------------------------------------- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-color);
}

.admin-sidebar {
    width: 280px;
    background: rgba(5, 5, 8, 0.95);
    border-right: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    padding: 24px;
}

.admin-sidebar .logo {
    font-size: 24px;
    margin-bottom: 40px;
    display: block;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 32px;
}

.admin-profile .avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.admin-profile .name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.admin-profile .role {
    font-size: 12px;
    color: var(--accent-cyan);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav .dash-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    transition: all 0.3s ease;
}

.sidebar-nav .dash-tab i {
    width: 18px;
    height: 18px;
}

.sidebar-nav .dash-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.sidebar-nav .dash-tab.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: inset 4px 0 0 var(--accent-cyan);
}

.admin-main {
    flex: 1;
    margin-left: 280px; /* offset for sidebar */
    padding: 40px;
    max-width: calc(100vw - 280px);
}

/* Polishing Cards & Friendliness */
.admin-main .stat-card,
.admin-main .overview-card,
.admin-main .chart-container,
.admin-main .table-container,
.admin-main .task-column {
    border-radius: 20px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-main .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.admin-main .stat-card {
    padding: 28px !important;
}

/* --------------------------------------------------------
   Security & UX Enhancements CSS
   -------------------------------------------------------- */

/* 2FA Toggle Switch */
.switch input { display: none; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .4s; border-radius: 24px;
}
.slider:before {
    position: absolute; content: ""; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }
input:checked + .slider:before { transform: translateX(24px); }

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
.skeleton-box {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #111 4%, #222 25%, #111 36%);
    background-size: 1000px 100%;
    border-radius: 8px;
}

/* Video Hover Previews */
.video-thumbnail {
    transition: transform 0.3s ease, filter 0.3s ease;
}
.video-thumbnail:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Miniplayer Picture-in-Picture */
.miniplayer-mode {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 400px !important;
    height: 225px !important;
    z-index: 1000 !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8) !important;
    border: 1px solid var(--surface-border) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.miniplayer-close {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    align-items: center;
    justify-content: center;
}
.miniplayer-mode .miniplayer-close {
    display: flex;
}
