/* style.css - Premium Blue and Teal theme for DigitalCoop */
html {
    font-size: 90%;
}
:root {
    --primary-blue: #0A2540;
    --secondary-blue: #1E4ED8;
    --accent-teal: #0D9488;
    --accent-teal-hover: #0F766E;
    --bg-light: #F8FAFC;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Premium Palette Extensions */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-500: #71717a;
    --zinc-800: #27272a;

    --success-bg: #f0fdf4;
    --success-text: #15803d;
    --warning-bg: #fffbeb;
    --warning-text: #b45309;
    --danger-bg: #fef2f2;
    --danger-text: #b91c1c;
    --info-bg: #eff6ff;
    --info-text: #1d4ed8;

    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1 {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate-800);
}

a {
    text-decoration: none;
    color: var(--secondary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--slate-900);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-weight: 600; }

/* h1 standardized at line 63 */
h2 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; font-weight: 600; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.tracking-tight { letter-spacing: -0.025em; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.2);
}

.btn-accent {
    background-color: var(--accent-teal);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background-color: var(--accent-teal-hover);
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.2);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    border: 1px solid var(--white);
}

.btn-white:hover {
    background: var(--slate-100);
    color: var(--primary-blue) !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Mobile Toggler */
.navbar-toggler {
    display: none;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-900);
    font-size: 1.1rem;
    transition: all 0.2s;
    outline: none;
}

.navbar-toggler:hover {
    background: var(--slate-100);
    border-color: var(--slate-300);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .navbar {
        padding: 0.85rem 1.25rem;
    }

    .navbar-toggler {
        display: none; 
    }

    .navbar-nav {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
        z-index: 1000;
    }

    .navbar-nav.active {
        display: flex;
    }

    .navbar-nav .btn {
        width: 100%;
    }

    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .card h3 {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }

    .mobile-px-0 { padding-left: 0 !important; padding-right: 0 !important; }
    .mobile-mb-4 { margin-bottom: 1rem !important; }
    .mobile-mt-4 { margin-top: 1rem !important; }
    
    .stack-mobile {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Hero Section Specifics */
    .hero-h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }

    .hero-p {
        font-size: 1.1rem !important;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn-group .btn {
        width: 100%;
    }

    /* Pricing Section Stacking Fix */
    #pricing .card {
        transform: none !important;
        margin-bottom: 1rem;
    }

    /* Dashboard Layout Mobile Overrides */
    .app-layout {
        flex-direction: column !important;
    }

    .app-sidebar {
        position: fixed !important;
        left: -280px !important;
        top: 0 !important;
        height: 100vh !important;
        width: 280px !important;
        z-index: 10001 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 20px 0 50px rgba(0,0,0,0.1) !important;
        display: flex !important;
    }

    .app-sidebar.active {
        left: 0 !important;
    }

    .app-content {
        padding: 1rem !important;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        z-index: 10000;
        animation: fadeIn 0.2s ease-out;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* Ensure Toggler only shows below 991px to match sidebar logic */
@media (max-width: 991px) {
    .navbar-toggler {
        display: flex !important;
    }
}

/* Base Dashboard Classes (Desktop First as fallback) */
.app-layout {
    display: flex;
    min-height: calc(100vh - 70px);
    background: var(--bg-light);
}

.app-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    flex-shrink: 0;
}

.app-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-teal);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Dashboard specific classes */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--slate-200);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    border-color: var(--slate-300);
}

.card-flat {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    box-shadow: none;
}

.card-gradient-dark {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    color: white;
    border: none;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.alert-success { background-color: #DEF7EC; color: #03543F; border: 1px solid #31C48D; }
.alert-danger { background-color: #FDE8E8; color: #9B1C1C; border: 1px solid #F8B4B4; }

/* Tabs Component */
.tab-container {
    margin-bottom: 2rem;
}
.tab-header {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.tab-btn:hover {
    color: var(--primary-blue);
}
.tab-btn.active {
    color: var(--secondary-blue);
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-blue);
    border-radius: 3px 3px 0 0;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.3s ease-out;
}

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

/* Responsive Table Stack */
@media (max-width: 768px) {
    .table-responsive-stack thead {
        display: none;
    }
    .table-responsive-stack tr {
        display: block;
        padding: 1.25rem;
        border-bottom: 1px solid var(--slate-100);
        background: var(--white);
        margin-bottom: 0.75rem;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
    }
    .table-responsive-stack td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.65rem 0 !important;
        border: none !important;
        font-size: 0.85rem !important;
        text-align: right !important; /* Force right alignment for values on mobile */
    }
    .table-responsive-stack td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--slate-500);
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
        margin-right: 1rem;
        text-align: left;
    }
    .table-responsive-stack td:last-child {
        border-bottom: 0;
    }
}

/* Table Utilities */
.text-right { text-align: right !important; }
.align-middle { vertical-align: middle !important; }

/* Layout Utilities */
.flex-stack-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .flex-stack-mobile {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    .flex-stack-mobile > * {
        width: 100%;
    }
}

.search-container-premium {
    position: relative;
    flex: 1;
    max-width: 400px;
}

@media (max-width: 991px) {
    .search-container-premium {
        max-width: 100%;
    }
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Landing Page Enhancements */
.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    text-align: center;
}

.navbar.scrolled {
    padding: 0.75rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* How It Works */
.step-card {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--accent-teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
}

/* FAQ Accordion */
.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-blue);
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--accent-teal);
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 100%;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--slate-600);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--slate-100);
}

/* Enhanced Footer */
.footer-main {
    background: var(--primary-blue);
    color: var(--white);
    padding: 5rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--slate-400);
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--accent-teal);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent-teal);
    color: white;
    transform: translateY(-3px);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Dashboard Preview & Stats */
.dashboard-preview {
    border-radius: 16px;
    box-shadow: 0 50px 100px -30px rgba(0,0,0,0.15);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    max-height: 500px; /* Increased by 20% */
    margin: 0 auto;
    background: #FFFFFF;
    animation: float 6s ease-in-out infinite;
}

.dashboard-preview::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 6s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-15px) rotateX(1deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-150%); }
    20%, 100% { transform: translateX(150%); }
}

.dashboard-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.5s ease;
}

.dashboard-preview:hover img {
    transform: scale(1.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}
