/* Custom CSS stylesheet for Apex Academy & Lead CRM System */
/* Clean, human-designed premium styling - NO neon glow or standard AI templates */

:root {
    --brand-navy: #0B1B3D;
    --brand-navy-light: #1A305C;
    --brand-gold: #B8860B;
    --brand-gold-light: #C5A880;
    --brand-gold-dark: #8B6508;
    
    --bg-cream: #FCFAF7;
    --bg-white: #FFFFFF;
    --bg-slate: #F8FAFC;
    --bg-slate-dark: #0F172A;
    
    --text-dark: #1E293B;
    --text-light: #F8FAFC;
    --text-muted: #64748B;
    --border-gray: #E2E8F0;
    --border-dark: #334155;
    
    --success: #15803d;
    --success-bg: #dcfce7;
    --warning: #b45309;
    --warning-bg: #fef3c7;
    --danger: #be123c;
    --danger-bg: #ffe4e6;
    --info: #0369a1;
    --info-bg: #e0f2fe;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    color: var(--text-dark);
    background-color: var(--bg-slate);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ================= DEMO CONTROLLER HEADER ================= */
.demo-controller {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 54px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: var(--shadow-sm);
}

.demo-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sr-logo {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--bg-slate-dark);
    font-size: 15px;
}

.demo-badge {
    background-color: var(--brand-gold-light);
    color: #4A3B32;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.view-switcher {
    display: flex;
    background-color: var(--bg-slate);
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 3px;
}

.switch-btn {
    border: none;
    background: none;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 16px;
    border-radius: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.switch-btn:hover {
    color: var(--brand-navy);
}

.switch-btn.active {
    background-color: var(--brand-navy);
    color: var(--text-light);
}

.reset-btn {
    border: 1px solid var(--border-gray);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background-color: var(--bg-slate);
}

/* ================= SHARED VIEW SECTIONS ================= */
.view-section {
    display: none;
    min-height: calc(100vh - 54px);
}

.view-section.active-view {
    display: block;
}

/* ================= STUDENT WEBSITE VIEW ================= */
#student-view-container {
    background-color: var(--bg-cream);
}

/* Contact Top Bar */
.site-top-bar {
    background-color: var(--brand-navy);
    color: var(--bg-cream);
    font-size: 12px;
    padding: 8px 0;
    font-weight: 500;
}

.bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Academy Nav */
.academy-nav {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
    padding: 16px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.academy-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-crest {
    background-color: var(--brand-navy);
    color: var(--brand-gold-light);
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 18px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid var(--brand-gold);
}

.logo-text {
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: var(--brand-navy);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a {
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-gold);
}

.nav-links .nav-cta {
    background-color: var(--brand-navy);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-links .nav-cta:hover {
    background-color: var(--brand-navy-light);
    color: var(--text-light);
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content .trust-badge {
    display: inline-block;
    background-color: var(--warning-bg);
    color: var(--warning);
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 44px;
    line-height: 1.15;
    color: var(--brand-navy);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--brand-navy);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--brand-navy-light);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--brand-navy);
    border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
    background-color: var(--bg-slate);
}

.btn-outline {
    background-color: transparent;
    color: var(--brand-navy);
    border: 1px solid var(--brand-navy);
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--brand-navy);
    color: var(--text-light);
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-gray);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: bold;
    color: var(--brand-navy);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* Landing Enquiry Form Card */
.hero-form-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.hero-form-card h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.hero-form-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-ui);
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    outline: none;
    color: var(--text-dark);
    background-color: var(--bg-slate);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-navy);
    background-color: var(--bg-white);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-submit {
    background-color: var(--brand-gold);
    color: var(--bg-white);
    width: 100%;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 700;
}

.btn-submit:hover {
    background-color: var(--brand-gold-dark);
}

/* Course Grid Section */
.courses-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    border-top: 1px solid var(--border-gray);
}

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--brand-navy);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 15px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.course-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--info-bg);
    color: var(--info);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.course-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--brand-navy);
    margin-bottom: 12px;
    margin-top: 8px;
}

.course-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    border-top: 1px solid var(--border-gray);
    padding-top: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-dark);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--brand-navy);
    color: var(--text-light);
    padding: 80px 24px;
}

.testimonials-section .section-header h2 {
    color: var(--brand-gold-light);
}

.testimonials-section .section-header p {
    color: var(--border-gray);
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--brand-navy-light);
    border: 1px solid var(--border-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
    color: var(--brand-gold-light);
    margin-bottom: 12px;
}

.testimonial-card .quote {
    font-size: 15px;
    font-style: italic;
    color: var(--border-gray);
    margin-bottom: 20px;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--brand-gold-light);
    color: var(--brand-navy);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.student-info h4 {
    font-size: 14px;
    font-weight: 700;
}

.student-info span {
    font-size: 11px;
    color: var(--border-gray);
}

/* Academy Footer */
.academy-footer {
    background-color: var(--bg-slate-dark);
    color: var(--text-muted);
    text-align: center;
    padding: 30px 24px;
    font-size: 13px;
    border-top: 1px solid var(--border-dark);
}

/* FLOATING WHATSAPP CHAT WIDGET */
.whatsapp-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    font-family: var(--font-ui);
}

.whatsapp-trigger {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-trigger:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    background-color: #ECE5DD; /* Official WhatsApp BG */
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

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

.whatsapp-chat-box .chat-header {
    background-color: #075E54;
    color: white;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.counselor-avatar {
    width: 36px;
    height: 36px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

.counselor-info h4 {
    font-size: 13px;
    font-weight: 600;
}

.status-indicator {
    font-size: 10px;
    color: #DCF8C6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-close-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.whatsapp-chat-box .chat-body {
    padding: 15px;
    max-height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.chat-message.agent-msg {
    background-color: white;
    align-self: flex-start;
    border-top-left-radius: 0;
    box-shadow: var(--shadow-sm);
}

.chat-message.student-msg {
    background-color: #DCF8C6;
    align-self: flex-end;
    border-top-right-radius: 0;
    box-shadow: var(--shadow-sm);
}

.msg-time {
    display: block;
    font-size: 8px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

.chat-options {
    padding: 10px;
    border-top: 1px solid var(--border-gray);
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chat-options button {
    background-color: var(--bg-slate);
    border: 1px solid var(--border-gray);
    padding: 8px 12px;
    border-radius: 6px;
    text-align: left;
    font-size: 11px;
    font-family: var(--font-ui);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-options button:hover {
    background-color: #DCF8C6;
    border-color: #25D366;
}

.chat-capture-form {
    padding: 15px;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-capture-form .form-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-navy);
}

.chat-capture-form input,
.chat-capture-form select {
    font-family: var(--font-ui);
    font-size: 11px;
    padding: 6px 8px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
}

.btn-submit-widget {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.btn-submit-widget:hover {
    background-color: #128C7E;
}


/* ================= ADMIN CRM VIEW ================= */
#admin-view-container {
    background-color: var(--bg-slate);
}

.crm-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 54px);
}

/* CRM Sidebar */
.crm-sidebar {
    background-color: var(--bg-slate-dark);
    color: var(--text-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border-dark);
}

.crm-title {
    margin-bottom: 30px;
}

.crm-crest {
    color: var(--brand-gold-light);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.crm-title h2 {
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 800;
    margin-top: 2px;
}

.crm-nav {
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crm-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.crm-nav li:hover a {
    color: var(--text-light);
    background-color: var(--border-dark);
}

.crm-nav li.active a {
    background-color: var(--brand-navy-light);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
}

.crm-nav li a.disabled-link {
    cursor: not-allowed;
    opacity: 0.5;
}

.branding-footer {
    border-top: 1px solid var(--border-dark);
    padding-top: 16px;
}

.branding-footer p {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: bold;
}

.branding-footer a {
    font-size: 12px;
    color: var(--brand-gold-light);
    font-weight: 600;
}

/* CRM Content Panel */
.crm-content {
    padding: 30px;
    overflow-y: auto;
}

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

.crm-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-export {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-gray);
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
}

.btn-export:hover {
    background-color: var(--border-gray);
}

/* Metrics Dashboard Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.metric-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.metric-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.2;
    margin: 4px 0;
}

.metric-value.text-success { color: var(--success); }
.metric-value.text-warning { color: var(--warning); }
.metric-value.text-primary { color: var(--info); }

.metric-desc {
    font-size: 10px;
    color: var(--text-muted);
}

/* CRM Table Toolbar */
.table-toolbar {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-bottom: none;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    background-color: var(--bg-slate);
    outline: none;
}

.search-box input:focus {
    background-color: white;
    border-color: var(--brand-navy);
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-controls select {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    background-color: var(--bg-white);
    outline: none;
}

/* Flat CRM Data Table */
.table-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.leads-table th {
    background-color: var(--bg-slate);
    color: var(--text-muted);
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-gray);
    font-size: 11px;
    text-transform: uppercase;
}

.leads-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-dark);
}

.leads-table tr:hover td {
    background-color: #f8fafc;
}

/* Row highlight for new leads */
.row-new {
    animation: greenPulse 2.5s ease;
}

@keyframes greenPulse {
    0% { background-color: transparent; }
    15% { background-color: #dcfce7; }
    100% { background-color: transparent; }
}

.lead-student-cell {
    display: flex;
    flex-direction: column;
}

.lead-name {
    font-weight: 700;
    color: var(--brand-navy);
}

.lead-phone {
    font-size: 11px;
    color: var(--text-muted);
}

.lead-city {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* Lead Source indicator styling */
.source-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.source-web { background-color: var(--info-bg); color: var(--info); }
.source-chat { background-color: var(--success-bg); color: var(--success); }

/* Status selector design in Table */
.status-select {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    outline: none;
}

.status-select.opt-new { background-color: var(--info-bg); color: var(--info); }
.status-select.opt-contacted { background-color: #e2e8f0; color: #475569; }
.status-select.opt-demo { background-color: var(--warning-bg); color: var(--warning); }
.status-select.opt-joined { background-color: var(--success-bg); color: var(--success); }
.status-select.opt-not-interested { background-color: var(--danger-bg); color: var(--danger); }

/* Editable elements in Table */
.note-input {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 12px;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.2s ease;
}

.note-input:focus {
    border-color: var(--border-gray);
    background-color: var(--bg-slate);
    outline: none;
}

.date-input {
    font-family: var(--font-ui);
    font-size: 12px;
    padding: 4px;
    border: 1px solid transparent;
    background-color: transparent;
}

.date-input:focus {
    border-color: var(--border-gray);
    background-color: var(--bg-slate);
    outline: none;
}

.btn-crm-action {
    background-color: var(--brand-navy);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-crm-action:hover {
    background-color: var(--brand-navy-light);
}

/* ================= MODAL OUTREACH DIALOG ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background-color: var(--bg-white);
    border-radius: 8px;
    width: 480px;
    max-width: 90%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    animation: modalSlideUp 0.25s ease;
}

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

.modal-header {
    background-color: var(--brand-navy);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-context-banner {
    background-color: var(--bg-slate);
    border-left: 3px solid var(--brand-gold);
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-dark);
}

.modal-body select {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
}

.modal-body textarea {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 12px;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    resize: none;
    line-height: 1.5;
}

.modal-footer {
    padding: 16px 20px;
    background-color: var(--bg-slate);
    border-top: 1px solid var(--border-gray);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 700;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}


/* ================= TOAST NOTIFICATION ================= */
.toast-container {
    position: fixed;
    top: 64px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--bg-slate-dark);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.5s ease 3s forwards;
    border-left: 4px solid var(--brand-gold);
}

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

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


/* ================= RESPONSIVE LAYOUTS ================= */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .crm-layout {
        grid-template-columns: 1fr;
    }
    
    .crm-sidebar {
        display: none; /* In simple demo, sidebar hidden on small screens */
    }
    
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .bar-container {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        width: 100%;
    }
}
