/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0F172A; /* Slate 900 */
    --primary-light: #1E293B;
    --accent: #3B82F6; /* Blue 500 */
    --accent-hover: #2563EB;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Authentication Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.auth-card {
    background: var(--card-bg);
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    padding: 2.5rem;
    text-align: center;
}

.auth-header {
    margin-bottom: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #F8FAFC;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #FFF;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Mobile Responsiveness for Dashboard */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
    }
    
    .dashboard-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 1rem !important;
    }
    
    /* Native App Bottom Navigation Bar */
    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid var(--border-color);
        display: flex;
        justify-content: space-around;
        gap: 0;
        padding: 0.5rem 0;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
        margin: 0;
        z-index: 1000;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
    }

    .nav-links a {
        flex-direction: column;
        font-size: 0.7rem;
        gap: 0.25rem;
        color: var(--text-muted);
        text-align: center;
    }

    .nav-links a i {
        font-size: 1.5rem;
    }

    .nav-links a.active {
        color: var(--accent);
    }

    body {
        padding-bottom: 80px !important;
    }

    .list-card, .form-card, .preview-card {
        padding: 1.5rem !important;
    }

    .preview-card {
        display: none !important;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
