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

:root {
    /* Color Palette - HSL (Light Mode defaults) */
    --bg-primary: 0 0% 100%;
    --bg-secondary: 210 40% 98%;
    --bg-tertiary: 210 40% 96.1%;
    
    --text-primary: 222.2 84% 4.9%;
    --text-secondary: 215.4 16.3% 46.9%;
    --text-muted: 215 16% 65%;
    
    --primary: 142.1 76.2% 36.3%; /* Emerald 600 */
    --primary-hover: 142.1 72% 29%;
    --primary-light: 142.1 76.2% 95%;
    
    --accent: 142.1 70% 45%;
    --danger: 0 84.2% 60.2%;
    --danger-hover: 0 72% 51%;
    --danger-light: 0 100% 97%;
    
    --warning: 38 92% 50%;
    --warning-light: 48 96% 96%;
    
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 142.1 76.2% 36.3%;
    --card: 0 0% 100%;
    --card-hover: 210 40% 99%;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode Overrides */
body.dark {
    --bg-primary: 224 71.4% 4.1%; /* Slate 950 */
    --bg-secondary: 222.2 47.4% 11.2%; /* Slate 900 */
    --bg-tertiary: 217.2 32.6% 17.5%; /* Slate 800 */
    
    --text-primary: 210 20% 98%;
    --text-secondary: 215.4 16.3% 83%;
    --text-muted: 215 16% 55%;
    
    --primary: 142.1 70% 45%; /* Emerald 500 */
    --primary-hover: 142.1 76.2% 36.3%;
    --primary-light: 142.1 70% 12%;
    
    --danger: 0 84.2% 60.2%;
    --danger-light: 0 100% 12%;
    
    --warning: 38 92% 50%;
    --warning-light: 38 92% 12%;
    
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --card: 224 71.4% 7%; /* Dark Card */
    --card-hover: 224 71.4% 10%;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    background-color: hsl(var(--bg-secondary));
    color: hsl(var(--text-primary));
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: hsl(var(--text-primary));
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography Helpers */
.title-hero {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, hsl(var(--text-primary)) 30%, hsl(var(--primary)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.title-section {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.125rem;
    color: hsl(var(--text-secondary));
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: #fff !important;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-hover));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px hsla(var(--primary), 0.25);
}

.btn-secondary {
    background-color: hsl(var(--bg-tertiary));
    color: hsl(var(--text-primary));
    border-color: hsl(var(--border));
}

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

.btn-dark {
    background-color: #000;
    color: #fff;
}

.btn-dark:hover {
    background-color: #222;
    transform: translateY(-2px);
}

.btn-danger {
    background-color: hsl(var(--danger));
    color: #fff;
}

.btn-danger:hover {
    background-color: hsl(var(--danger-hover));
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: hsl(var(--bg-secondary));
    border-color: hsl(var(--text-secondary));
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Inputs & Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: hsl(var(--bg-primary));
    border: 1px solid hsl(var(--input));
    border-radius: var(--radius-md);
    color: hsl(var(--text-primary));
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 2px hsla(var(--primary), 0.15);
}

.form-control::placeholder {
    color: hsl(var(--text-muted));
}

/* Custom Checkbox/Switch */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge-success {
    background-color: hsl(var(--primary-light));
    color: hsl(var(--primary));
}

.badge-danger {
    background-color: hsl(var(--danger-light));
    color: hsl(var(--danger));
}

.badge-warning {
    background-color: hsl(var(--warning-light));
    color: hsl(var(--warning));
}

.badge-secondary {
    background-color: hsl(var(--bg-tertiary));
    color: hsl(var(--text-secondary));
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: hsla(var(--bg-primary), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    transition: var(--transition);
}

header.sticky-scroll {
    box-shadow: var(--shadow);
}

.header-container {
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--text-primary));
}

.logo span {
    color: hsl(var(--primary));
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: hsl(var(--text-primary));
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: hsl(var(--primary));
    transition: var(--transition);
}

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

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

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 24px;
    z-index: 150;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: hsl(var(--text-primary));
    transition: var(--transition);
}

/* Dark Mode Switcher */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: hsl(var(--text-secondary));
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: hsl(var(--text-primary));
    background-color: hsl(var(--bg-tertiary));
}

/* Cards & Section Boxes */
.card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: hsl(var(--primary-light));
    color: hsl(var(--primary));
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Live Invoice Generator Tool */
.live-tool-wrapper {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 6rem;
}

.tool-header {
    background-color: hsl(var(--bg-tertiary));
    padding: 1.25rem 2rem;
    border-bottom: 1px solid hsl(var(--border));
}

.tool-body {
    padding: 2.5rem;
}

.tool-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.invoice-preview-container {
    background-color: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 2.5rem;
    min-height: 700px;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    font-family: Arial, sans-serif;
}

/* Inside Preview styling (must keep clean for PDF export) */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.preview-meta {
    text-align: right;
    font-size: 0.9rem;
    color: #475569;
}

.preview-meta p {
    margin-bottom: 0.25rem;
}

.preview-parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.preview-party-info h4 {
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.preview-table th {
    background-color: #f8fafc;
    border-bottom: 2px solid #cbd5e1;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #334155;
}

.preview-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.preview-table .text-right {
    text-align: right;
}

.preview-summary {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.preview-summary-box {
    width: 300px;
    font-size: 0.9rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-row.total {
    border-bottom: none;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    padding-top: 1rem;
}

.preview-footer {
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

/* Invoice Builder Fields styling */
.item-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

/* Benefits & Features */
.features-section {
    padding: 5rem 0;
    background-color: hsl(var(--bg-secondary));
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: hsl(var(--primary-light));
    color: hsl(var(--primary));
    border-radius: var(--radius-md);
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* FAQ */
.faq-section {
    padding: 5rem 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: hsl(var(--text-secondary));
    display: none;
    line-height: 1.6;
}

/* Blogs */
.blog-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.blog-image {
    width: 100%;
    height: 200px;
    background-color: hsl(var(--bg-tertiary));
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    font-size: 0.8rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog-desc {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.blog-link {
    color: hsl(var(--primary));
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-link:hover {
    color: hsl(var(--primary-hover));
}

/* Footer */
footer {
    background-color: #000;
    color: #94a3b8;
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}

footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer a {
    color: #94a3b8;
}

footer a:hover {
    color: #fff;
}

.footer-logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: hsl(var(--primary));
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: #1e293b;
    color: #94a3b8;
    transition: var(--transition);
}

.social-icon:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* Social media hover brand colors */
.social-icon.facebook:hover { background-color: #1877F2; }
.social-icon.instagram:hover { background-color: #E4405F; }
.social-icon.twitter:hover { background-color: #1DA1F2; }
.social-icon.linkedin:hover { background-color: #0077B5; }

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.8rem;
}

/* Interactive Dashboard Styles */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background-color: hsl(var(--card));
    border-right: 1px solid hsl(var(--border));
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-logo {
    padding: 0 0.5rem;
    margin-bottom: 2rem;
}

.sidebar-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: hsl(var(--text-secondary));
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: hsl(var(--primary-light));
    color: hsl(var(--primary));
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.sidebar-user {
    border-top: 1px solid hsl(var(--border));
    padding-top: 1.25rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: hsl(var(--primary));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Dashboard Content Area */
.dashboard-main {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.dashboard-header {
    background-color: hsl(var(--card));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-body {
    padding: 2rem;
    flex: 1;
}

/* Metric Widgets */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.metric-card-title {
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.metric-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.metric-card-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-card-trend.up { color: hsl(var(--primary)); }
.metric-card-trend.down { color: hsl(var(--danger)); }

/* Dashboard Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

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

.table-dashboard th {
    padding: 1rem;
    border-bottom: 2px solid hsl(var(--border));
    color: hsl(var(--text-secondary));
    font-weight: 600;
    font-size: 0.85rem;
}

.table-dashboard td {
    padding: 1rem;
    border-bottom: 1px solid hsl(var(--border));
    vertical-align: middle;
}

.table-dashboard tr:hover {
    background-color: hsl(var(--bg-secondary));
}

/* Tab View Panes */
.dashboard-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dashboard-pane.active {
    display: block;
}

/* Chronological Timeline CRM */
.timeline-list {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid hsl(var(--border));
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 6px);
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: hsl(var(--primary));
    border: 2px solid hsl(var(--card));
}

.timeline-time {
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    margin-bottom: 0.25rem;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

/* Settings, Auth & Special Overlays */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--bg-secondary));
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.auth-logo span {
    color: hsl(var(--primary));
}

.developer-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--primary));
    border-radius: var(--radius-md);
    padding: 1rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    max-width: 300px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* Hide sidebar on tablet/mobile, will show via burger */
        position: fixed;
        left: 0;
        top: 0;
        z-index: 200;
        width: 280px;
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar.open {
        display: flex;
    }
    
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-links {
        display: none; /* Will show via overlay */
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: hsl(var(--bg-primary));
        border-bottom: 1px solid hsl(var(--border));
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .title-hero {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .metric-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-preview-container {
        padding: 1.25rem;
    }
    
    .tool-body {
        padding: 1.25rem;
    }
}
