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

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --emerald-600: #10b981;
    --emerald-700: #059669;

    /* Background Colors */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-500: #64748b;
    --slate-900: #0f172a;

    /* Accent Colors */
    --green-100: #d1fae5;
    --yellow-100: #fef3c7;
    --yellow-900: #92400e;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Landing Page V2 Styles */
.landing-page-v2 {
    background: linear-gradient(180deg, var(--slate-50) 0%, white 100%);
    min-height: 100vh;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(15, 23, 42, 0.02) 100%);
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.logo-large {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
}

.logo-dot-large {
    width: 14px;
    height: 14px;
    background: var(--emerald-600);
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.logo-text-large {
    letter-spacing: -0.5px;
}

.hero-headline {
    font-size: 72px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1;
}

.hero-subheadline {
    font-size: 24px;
    color: var(--slate-500);
    margin-bottom: 48px;
    font-weight: 500;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--emerald-600);
    color: white;
    padding: 0 40px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.hero-cta:hover {
    background: var(--emerald-700);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

/* How It Works Section */
.how-it-works {
    padding: 80px 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.step-icon {
    width: 64px;
    height: 64px;
    background: var(--green-100);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.step-icon svg {
    color: var(--emerald-600);
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 12px;
}

.step-description {
    font-size: 15px;
    color: var(--slate-500);
    line-height: 1.6;
    font-weight: 500;
}

/* Proof Strip */
.proof-strip {
    padding: 60px 20px;
    background: var(--slate-50);
}

.proof-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.proof-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--slate-500);
    padding: 12px 24px;
    border-radius: 8px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.proof-logo.active {
    color: var(--emerald-600);
    border-color: var(--emerald-600);
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    padding: 60px 20px 40px;
    background: var(--slate-900);
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-500);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: var(--emerald-600);
}

.footer-copyright {
    color: var(--slate-500);
    font-size: 13px;
}

/* Responsive - Landing Page V2 */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 48px;
    }

    .hero-subheadline {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .proof-content {
        gap: 20px;
    }
}

/* Old Landing Page Styles (kept for backward compatibility) */
.landing-page {
    background: linear-gradient(135deg, var(--slate-50) 0%, var(--slate-100) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-container {
    width: 100%;
    max-width: 480px;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    font-size: 24px;
    font-weight: 700;
    color: var(--slate-900);
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--emerald-600);
    border-radius: 50%;
    margin-right: 10px;
}

.logo-text {
    letter-spacing: -0.5px;
}

/* Headlines */
.headline {
    font-size: 48px;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.subheadline {
    font-size: 18px;
    color: var(--slate-500);
    margin-bottom: 8px;
    font-weight: 500;
}

.subheadline-small {
    font-size: 14px;
    color: var(--slate-500);
    margin-bottom: 32px;
    font-weight: 400;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--emerald-600);
    color: white;
    padding: 0 32px;
    height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 13px;
    color: var(--slate-500);
    font-weight: 500;
}

.social-proof svg {
    color: var(--emerald-600);
}

/* Dashboard Styles */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--slate-50);
}

/* Sidebar */
.sidebar {
    width: 64px !important;
    background: var(--slate-900) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 20px 0 !important;
    gap: 20px !important;
    position: fixed !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 40 !important;
}

/* Hide sidebar on mobile */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
}

.sidebar-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--slate-500) !important;
    border-radius: 8px !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}

.sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 32px;
    margin-left: 64px;
}

/* Full width on mobile */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 16px;
    }
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.top-bar h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-900);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--green-100);
    color: var(--emerald-700);
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.beta-badge {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald-600);
    border-radius: 50%;
}

/* Success Banner */
.success-banner {
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 12px;
    color: var(--slate-500);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -1px;
}

/* Action Card */
.action-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.action-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 16px;
}

.action-form {
    display: flex;
    gap: 12px;
}

.template-dropdown {
    flex: 1;
    padding: 0 16px;
    height: 48px;
    border: 1px solid var(--slate-500);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-900);
    background: white;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.send-button {
    padding: 0 24px;
    height: 48px;
    background: var(--emerald-600);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.send-button:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
}

/* Table */
.table-container {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--slate-50);
}

th {
    text-align: left;
    padding: 16px 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

td {
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: var(--slate-900);
    font-weight: 500;
}

tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

tbody tr:hover {
    background: var(--slate-50);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green {
    background: var(--green-100);
    color: var(--emerald-700);
}

.badge-yellow {
    background: var(--yellow-100);
    color: var(--yellow-900);
}

/* Send WhatsApp Button */
.send-whatsapp-btn {
    padding: 0 16px;
    height: 48px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.send-whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 32px 24px;
    }

    .headline {
        font-size: 36px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        position: static;
    }

    .action-form {
        flex-direction: column;
    }

    .template-dropdown,
    .send-button,
    .cta-button,
    .send-whatsapp-btn {
        width: 100% !important;
    }
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #10b981;
}

input:focus+.slider {
    box-shadow: 0 0 1px #10b981;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Mobile: Make invoice table horizontally scrollable */
@media (max-width: 768px) {
    .invoice-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .invoice-table {
        min-width: 800px;
        /* Ensure table doesn't shrink */
    }
}

/* Fix Tailwind CSS table reset - restore table padding */
table th,
table td {
    padding: 12px !important;
    text-align: left !important;
}

table th {
    font-weight: 600 !important;
    color: #64748b !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}