@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');

/* ==========================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
    /* Brand Colors */
    --brand-primary: #a022f3;
    --brand-magenta: #e523e6;
    --brand-pink: #f11ee3;
    --brand-gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-magenta) 50%, var(--brand-pink) 100%);
    
    /* Accessibility scale (ergonomics) */
    --base-font-size: 16px;
    --font-scale: 1;
    
    /* Transition defaults */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Common spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    /* Light Theme Variables (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fb;
    --bg-tertiary: #f0f2f5;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #000000;
    --text-secondary: #4a4a4a;
    --text-muted: #717171;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    --shadow-brand: 0 8px 24px rgba(160, 34, 243, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
}

/* Dark Theme Variables (Default) */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0c;
    --bg-tertiary: #121216;
    --bg-glass: rgba(0, 0, 0, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --text-muted: #6e6e77;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8);
    --shadow-brand: 0 8px 24px rgba(229, 35, 230, 0.35);
    --glass-border: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .logo-img {
    filter: invert(1) hue-rotate(180deg);
}

/* ==========================================================
   RESET & ACCESSIBLE BASICS
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: calc(var(--base-font-size) * var(--font-scale));
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

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

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Accessibility Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brand-magenta);
    outline-offset: 4px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ==========================================
   UTILITIES
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: var(--shadow-brand);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(160, 34, 243, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.btn-icon:hover {
    transform: scale(1.1);
    border-color: var(--brand-magenta);
    box-shadow: 0 0 15px rgba(229, 35, 230, 0.3);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: var(--transition-bounce);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    opacity: 0.85;
}

.nav-link:hover {
    opacity: 1;
    color: var(--brand-magenta);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Menu Toggle for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    background: radial-gradient(circle at 10% 20%, rgba(160, 34, 243, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(241, 30, 227, 0.2) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ergonomic-model {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.visual-orbit {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px dashed var(--border-color);
    border-radius: 50%;
    z-index: 1;
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

/* ==========================================
   CONCEPT CARDS
   ========================================== */
.concepts {
    padding: var(--space-xl) 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl) auto;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--brand-magenta);
    margin-bottom: var(--space-xs);
    display: block;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-secondary);
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.concept-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.concept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.concept-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(229, 35, 236, 0.3);
    box-shadow: var(--shadow-lg);
}

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

.concept-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    display: inline-block;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 10px rgba(160, 34, 243, 0.3));
}

.concept-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
}

.concept-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================
   HISTORY SECTION
   ========================================== */
.history {
    padding: var(--space-xl) 0;
    position: relative;
}

.history-timeline {
    position: relative;
    max-width: 800px;
    margin: var(--space-xl) auto 0 auto;
}

.history-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: var(--space-xl);
    position: relative;
    width: 50%;
    padding: 0 var(--space-lg);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-badge {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-gradient);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 10px var(--brand-primary);
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-badge {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -10px;
}

.timeline-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--brand-magenta);
    margin-bottom: var(--space-xs);
    display: block;
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--space-xl) 0;
    background-color: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    padding: var(--space-xl);
    background: linear-gradient(135deg, rgba(160, 34, 243, 0.05) 0%, rgba(229, 35, 230, 0.05) 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-header h2 {
    font-size: 2.25rem;
    margin-bottom: var(--space-sm);
}

.contact-header p {
    color: var(--text-secondary);
}

.contact-details {
    margin: var(--space-lg) 0;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--brand-magenta);
}

.detail-text h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-text p {
    font-weight: 500;
}

.contact-form-container {
    padding: var(--space-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--brand-magenta);
    background: var(--bg-primary);
    box-shadow: 0 0 10px rgba(229, 35, 230, 0.1);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0 var(--space-md) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 250px;
}

.footer-socials {
    display: flex;
    gap: var(--space-sm);
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    position: relative;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--brand-magenta);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.accessibility-panel {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

/* ==========================================
   ADMIN LOGIN MODAL
   ========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
}

.modal-content {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 450px;
    padding: var(--space-lg);
    position: relative;
    z-index: 10;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

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

.modal-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.modal-header h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-body form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    display: none;
    text-align: center;
}

/* ==========================================
   ADMIN DASHBOARD VIEWER
   ========================================== */
.admin-dashboard {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    z-index: 9000;
    overflow: hidden;
}

.admin-dashboard.active {
    display: flex;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
}

.sidebar-item.active,
.sidebar-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-item.active i,
.sidebar-item:hover i {
    color: var(--brand-magenta);
}

.main-dashboard {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-sm);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 4px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(160, 34, 243, 0.1) 0%, rgba(229, 35, 230, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-magenta);
    font-size: 1.5rem;
}

.dashboard-table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.dashboard-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

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

.dashboard-table th,
.dashboard-table td {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.dashboard-table th {
    font-weight: 600;
    color: var(--text-muted);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.new {
    background: rgba(160, 34, 243, 0.15);
    color: var(--brand-primary);
}

.status-badge.replied {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* ==========================================
   ANIMATIONS & FLOATERS
   ========================================== */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

/* ==========================================
   RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .visual-orbit {
        width: 350px;
        height: 350px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
    
    .history-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-badge,
    .timeline-item:nth-child(even) .timeline-badge {
        left: 10px;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-tertiary);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition-smooth);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-actions {
        display: none; /* In mobile we can move darkmode to links or top */
    }
    
    .nav-links .nav-actions-mobile {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ==========================================
   REFATORED UTILITIES AND REMOVAL OF INLINE STYLES
   ========================================== */

/* Button disabled state styling */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Visibility classes */
.hidden-desktop {
    display: none;
}

/* Tab contents (replaces inline style="display: none;") */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Logos & badges custom sizing */
.footer-logo-img {
    max-height: 35px;
    width: auto;
    display: block;
    margin-bottom: var(--space-xs);
}

.sidebar-logo-img {
    max-width: 120px;
    height: auto;
}

.admin-badge {
    font-size: 0.75rem;
    background: var(--brand-gradient);
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffffff;
}

/* Sidebar Custom Elements */
.sidebar-logout {
    width: 100%;
    margin-top: auto;
    border: 1px solid var(--border-color);
    color: #ef4444;
}

/* Dashboard & Admin utilities */
.dashboard-subtitle {
    color: var(--text-secondary);
}

.admin-connection-status {
    font-size: 0.9rem;
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.text-success {
    color: #22c55e;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-icon.success {
    color: #22c55e;
}

.table-update-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-table-action {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.dashboard-table-container.settings {
    max-width: 700px;
}

.settings-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.settings-form-group-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-readonly-code {
    cursor: not-allowed;
    background: var(--bg-tertiary);
    font-family: monospace;
}

.sql-guide-box {
    background: rgba(160, 34, 243, 0.1);
    border: 1px solid var(--brand-primary);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.sql-code-block {
    margin-top: 10px;
    background: var(--bg-primary);
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Submit buttons utility */
.btn-submit {
    margin-top: 10px;
}
.btn-submit.full-width {
    width: 100%;
}

/* Column sizing inside admin tables */
.col-sender {
    width: 200px;
}
.col-status {
    width: 120px;
}
.col-actions {
    width: 180px;
}
.lead-needs-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--brand-pink);
    margin-bottom: 5px;
}
.lead-message-text {
    white-space: pre-wrap;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 8px;
    border-radius: 6px;
}
.actions-flex {
    display: flex;
    gap: 8px;
}

/* Toast Notifications */
.toast-alert {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--bg-tertiary);
    border: 1px solid var(--brand-magenta);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-alert.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-alert.error {
    border-color: #ef4444;
}

/* Floating Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-brand);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: var(--transition-bounce), opacity 0.4s ease, visibility 0.4s ease;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(160, 34, 243, 0.5);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-bounce);
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}
