/*
Theme Name: PerformBiz V1
Theme URI: https://performbiz.in
Description: A minimal, high-trust analytics theme for PerformBiz.
Author: Antigravity
Version: 1.0
*/

:root {
    /* Color System - Financial + Trust */
    --bg-primary: #F7F8FA;
    --bg-white: #FFFFFF;
    --text-main: #1A1A1A;
    /* Charcoal */
    --text-muted: #595959;
    --accent-teal: #2A6F75;
    /* Muted Teal for generic actions */
    --accent-blue: #2563EB;
    /* Trust Blue for primary actions */
    --success: #10B981;
    /* Profit */
    --danger: #EF4444;
    /* Loss */
    --border-light: #E5E7EB;

    /* Spacing */
    --container-width: 1100px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.section-pad {
    padding: var(--spacing-lg) 0;
}

/* Typography Scale */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--accent-teal);
    color: white;
}

.btn-outline {
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-main);
}

/* Header */
.site-header {
    background: var(--bg-white);
    padding: 1rem 0;
    /* Reduced from 1.5rem (approx 33% smaller) */
    border-bottom: 1px solid transparent;
    /* Keep it clean */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Optional: adds subtle shadow when sticky */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
    text-decoration: none;
}

/* Minimal Currency Selector */
.currency-selector.minimal select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    padding-right: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    text-align: right;
}

.currency-selector.minimal select:hover {
    color: var(--text-main);
}

.currency-selector.minimal select:focus {
    outline: none;
}

/* Nav & Header Actions */
.site-navigation {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.primary-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.primary-menu a:hover {
    color: var(--accent-blue);
}

.currency-selector select {
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.currency-selector select:hover {
    border-color: var(--accent-teal);
    color: var(--text-main);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
}

.user-trigger .greeting {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

.header-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    display: none;
    z-index: 100;
    margin-top: 0.5rem;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--bg-primary);
}

.dropdown-menu a.text-danger {
    color: #ef4444;
}

.nav-butt.logo a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.25rem;
}

.nav-icon-link {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    transition: color 0.2s;
    margin-right: 0.5rem;
}

.nav-icon-link:hover {
    color: var(--accent-teal);
}

.nav-button {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.nav-button:hover {
    color: var(--accent-blue);
}

/* Mobile Menu Overlay System */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    /* Added to prevent bleed through */
}

.mobile-menu-overlay.active {
    right: 0;
    visibility: visible;
}

.mobile-menu-overlay .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #475569;
}

.mobile-nav-content {
    overflow-y: auto;
    height: 100%;
    margin-top: 1rem;
}

/* Compact User Profile Section (Hamburger) */
.mobile-user-profile-compact {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mobile-user-profile-compact .profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-user-profile-compact .header-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

.mobile-user-profile-compact .user-meta {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-user-profile-compact .greeting {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    text-transform: capitalize;
}

.mobile-user-profile-compact .logout-link {
    font-size: 0.8rem;
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
}

.mobile-user-profile-compact .profile-quick-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.mobile-user-profile-compact .action-btn {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-user-profile-compact .action-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* Footer Callback Form */
.footer-contact-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer-callback-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-callback-form input {
    padding: 0.5rem;
    border: 1px solid #334155;
    background: #1e293b;
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
}

.footer-callback-form button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.footer-callback-form button:hover {
    background: #1d4ed8;
}

/* Responsive Visibility */
.desktop-only {
    display: flex !important;
}

.mobile-only-hamburger {
    display: none !important;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only-hamburger {
        display: flex !important;
    }
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.micro-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 1rem;
    opacity: 0.8;
}

/* Insight Preview (2 Col) */
.insight-section {
    background: var(--bg-primary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.insight-card {
    background: var(--bg-white);
    padding: 2px;
    /* Slight border effect */
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
}

.insight-list li {
    list-style: none;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-main);
}

.insight-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
}

/* Dashboard Hero */
.dashboard-hero-section {
    background: var(--bg-white);
    padding-bottom: 0;
    overflow: hidden;
}

.dashboard-mockup {
    margin-top: var(--spacing-md);
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Usage Model (3 Cols) */
.usage-section {
    background: var(--bg-primary);
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.usage-col {
    padding: 2rem;
    text-align: center;
    background: transparent;
}

.usage-col.highlighted {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.usage-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.usage-list {
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.usage-list li {
    list-style: none;
    margin-bottom: 0.5rem;
}

/* Global Footer (Dark SaaS Style) */
.site-footer {
    padding: 5rem 0 2rem;
    background: #0f172a;
    /* Dark Navy */
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-blue);
}

/* Hamburger Menu (WP Managed) */
.consultancy-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.consultancy-mobile-list li {
    border-bottom: 1px solid #f1f5f9;
}

.consultancy-mobile-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.consultancy-mobile-list li a:hover {
    color: #2563eb;
}

.consultancy-mobile-list .menu-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: #94a3b8;
    padding-left: 10px;
}

.consultancy-mobile-list li.open>a .menu-arrow {
    transform: rotate(180deg);
}

.consultancy-mobile-list .sub-menu {
    list-style: none;
    padding: 0 0 0 1.5rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: #f8fafc;
}

.consultancy-mobile-list li.open>.sub-menu {
    max-height: 1000px;
    padding-bottom: 0.5rem;
}

.consultancy-mobile-list .sub-menu li {
    border-bottom: none;
}

.consultancy-mobile-list .sub-menu li a {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
}

.footer-links-bottom {
    display: flex;
    gap: 1.5rem;
}

.footer-links-bottom a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Footer Contact Form */
.footer-contact-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
}

.footer-contact-form textarea {
    height: 80px;
    resize: none;
}

.footer-contact-form button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.footer-contact-form button:hover {
    background: #1e40af;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .grid-2,
    .usage-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: var(--spacing-lg) 0;
        text-align: center;
    }
}


/* Authentication Styles - Compact & Centered */
.auth-container {
    background-color: var(--bg-primary);
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-card {
    background: var(--bg-white);
    padding: 2.5rem 3rem;
    /* More horizontal padding */
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 480px;
    /* Wider card as requested */
}

.auth-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.auth-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.performbiz-form .form-group {
    margin-bottom: 1rem;
}

/* Labels hidden / not used */
.performbiz-form label {
    display: none;
}

.performbiz-form input[type="text"],
.performbiz-form input[type="email"],
.performbiz-form input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    /* Comfortable padding */
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
    background-color: #FAFAFA;
    /* Slight grey background for inputs */
}

.performbiz-form input:focus {
    background-color: #FFFFFF;
}

.performbiz-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-remember {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.auth-switch a {
    color: var(--accent-blue);
    font-weight: 500;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-primary);
}

.dashboard-sidebar {
    width: 250px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    margin-bottom: 2rem;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.sidebar-nav a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: var(--bg-primary);
    color: var(--accent-blue);
}

.dashboard-main {
    flex-grow: 1;
    margin-left: 250px;
    /* Width of sidebar */
    padding: 2rem;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Dashboard Widgets */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.stat-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.negative {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

/* Main Chart Area */
.main-chart-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    min-height: 400px;
    /* Placeholder height */
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    border-left: 1px solid var(--border-light);
}

.bar {
    width: 40px;
    background: linear-gradient(to top, var(--accent-blue), #60A5FA);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.stats-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card-small {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}