/* Custom CSS for ChatLab Platform - Premium Dark Theme & Glassmorphism */

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

:root {
    --bg-main: #000000;
    --bg-card: rgba(0, 0, 0, 0.7);
    --bg-sidebar: #000000;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.2);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --accent: #a855f7;
    --accent-hover: #9333ea;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.1);
}

/* Landing Page Styles */
.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.15) 0%, rgba(11, 15, 25, 0) 60%);
}

.hero-split {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-carousel-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    height: 400px;
}

.hero-carousel {
    position: relative;
    width: 300px;
    height: 200px;
    transform-style: preserve-3d;
    animation: carouselRotate 15s infinite linear;
}

.carousel-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 0 2px var(--border-glow);
    background: var(--bg-card);
}

.carousel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.carousel-card.card-1 {
    transform: rotateY(0deg) translateZ(200px);
}
.carousel-card.card-2 {
    transform: rotateY(120deg) translateZ(200px);
}
.carousel-card.card-3 {
    transform: rotateY(240deg) translateZ(200px);
}

@keyframes carouselRotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.glow-text {
    background: linear-gradient(110deg, #6366f1 10%, #ffffff 30%, #a855f7 50%, #6366f1 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
    .hero-split {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 6rem;
    }
    .hero-content {
        align-items: center;
    }
    .form-actions {
        justify-content: center !important;
    }
    .hero-carousel {
        transform: scale(0.8);
    }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Sidebar Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0;
    color: var(--text-secondary);
    font-weight: 500;
}

.sidebar-item.active a, .sidebar-item a:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Workspace Content */
.main-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 2.5rem;
    min-height: 100vh;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 1.85rem;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    padding: 1.5rem;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0.5rem 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Styled Table */
.table-container {
    width: 100%;
    overflow-x: auto;
}

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

.custom-table th {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.custom-table tr {
    transition: var(--transition);
}

.custom-table tr:hover td {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-gemini {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-openai {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

/* Interactive Forms */
.form-container {
    max-width: 650px;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-glow);
    background: rgba(255, 255, 255, 0.05);
}

.form-select option {
    background-color: #1f2937;
    color: #f8fafc;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Chat Sandbox Styles */
.sandbox-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    height: calc(100vh - 180px);
}

.chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-message {
    max-width: 75%;
    padding: 0.85rem 1.25rem;
    border-radius: 0;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent-gradient);
    color: #fff;
    border-bottom-right-radius: 0;
}

.chat-message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 0;
}

.chat-message.system-error {
    align-self: center;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    text-align: center;
    font-size: 0.85rem;
    max-width: 90%;
}

.chat-input-bar {
    padding: 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.bot-info-sidebar {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.bot-info-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.bot-info-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.bot-info-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.bot-prompt-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 0;
    font-size: 0.85rem;
    font-family: monospace;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: var(--text-secondary);
}

/* Authentication Card Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.05) 0%, rgba(11, 15, 25, 0) 70%);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: var(--accent-gradient);
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 0;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

/* Typing Indicator Animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.5rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--text-muted);
    animation: typing 1.4s infinite ease-in-out both;
}

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

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Navbar Styles */
.public-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: white !important;
}

/* Animations */
.animate-enter {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.3s; }
.stagger-3 { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing Page */
.pricing-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--text-primary);
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: white !important;
}

/* Animations */
.animate-enter {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.3s; }
.stagger-3 { animation-delay: 0.5s; }
.stagger-4 { animation-delay: 0.7s; }
.stagger-5 { animation-delay: 0.9s; }
.stagger-6 { animation-delay: 1.1s; }
.stagger-4 { animation-delay: 0.7s; }
.stagger-5 { animation-delay: 0.9s; }
.stagger-6 { animation-delay: 1.1s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing Page */
.pricing-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1rem 0;
    color: var(--text-primary);
}
.pricing-features {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}
.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* Contact Page */
.contact-section {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem;
    text-align: center;
}
.contact-item {
    margin-bottom: 2rem;
}
.contact-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Home Features */
.features-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: left;
    transition: border-color 0.3s;
}
.feature-card:hover {
    border-color: var(--accent);
}
.pricing-features {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}
.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

/* Contact Page */
.contact-section {
    padding: 6rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem;
    text-align: center;
}
.contact-item {
    margin-bottom: 2rem;
}
.contact-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Home Features */
.features-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: left;
    transition: border-color 0.3s;
}
.feature-card:hover {
    border-color: var(--accent);
}

/* --- Mobile Responsiveness and Navigation Toggles --- */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: rgba(31, 41, 55, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}
.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000 !important;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
}
.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        height: 100vh !important;
        z-index: 9999 !important;
        width: 280px !important;
        min-width: 280px !important;
        border-radius: 0 !important;
    }
    .sidebar.open {
        transform: translateX(0) !important;
    }
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1.25rem !important;
        min-height: calc(100vh - 60px) !important;
    }
    .mobile-header {
        display: flex !important;
        margin: -1.25rem -1.25rem 1.25rem -1.25rem !important;
        width: calc(100% + 2.5rem) !important;
    }
    
    /* Responsive Form & Table Grids using inline style overrides */
    div[style*="display: grid;"], 
    div[style*="display:grid;"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    .page-header > div:last-child {
        margin-left: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .page-header > div:last-child form,
    .page-header > div:last-child a,
    .page-header > div:last-child button {
        flex-grow: 1 !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* Tables responsiveness */
    .table-container {
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
    }
    table {
        min-width: 600px !important;
    }
    
    /* Agent Desk Chat View Tweaks */
    .chat-layout-container {
        height: calc(100vh - 120px) !important;
    }
    
    /* Responsive Landing Hero Padding to remove empty space on mobile */
    .landing-hero {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Responsive Navbar spacing to prevent overlapping */
    .nav-container {
        padding: 0.6rem 0.5rem !important;
        gap: 0.25rem !important;
    }
    .nav-logo {
        font-size: 1.15rem !important;
        margin-right: auto !important;
    }
    .nav-links {
        gap: 0.5rem !important;
    }
    .nav-links a {
        font-size: 0.8rem !important;
    }
    .nav-links .btn-sm {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
}

/* Responsive Agent Chat Box reply console for extra small screens */
@media (max-width: 576px) {
    .chat-reply-controls {
        flex-direction: row !important;
        align-items: flex-end !important;
        gap: 0.5rem !important;
    }
    .chat-reply-controls textarea {
        flex: 0 0 40% !important;
        height: 48px !important;
        margin: 0 !important;
        border-radius: 24px !important;
        padding: 0.5rem 1rem !important;
    }
    .chat-reply-controls button[type="submit"] {
        flex: 1 !important;
        height: 48px !important;
        border-radius: 24px !important;
        background-color: #0084ff !important; /* Messenger blue */
        color: white !important;
        padding: 0 1rem !important;
    }
    .chat-reply-controls .attachment-buttons-container {
        flex: 0 0 40% !important;
        justify-content: flex-start !important;
        gap: 0.25rem !important;
        flex-wrap: wrap !important;
    }
    .chat-reply-controls .attachment-buttons-container button {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}
.mobile-drawer-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10000;
}
.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-drawer {
    position: fixed;
    top: 0; right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}
.mobile-drawer.active {
    right: 0;
}
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    line-height: 1;
}
.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.mobile-drawer-links a {
    color: #000 !important;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

/* Glowing Rotating Border for Pricing */
.mobile-pricing-link {
    display: inline-block;
    position: relative;
    padding: 2px;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}
.mobile-pricing-link::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, #a855f7 30%, #ef4444 70%, transparent 100%);
    animation: border-spin 2.5s linear infinite;
    z-index: 1;
}
.glow-wrap {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.glow-text-inner {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.1rem;
}
@keyframes border-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
    }
}
