/* assets/css/style.css */
:root {
    --primary-navy: #0F2642;
    --primary-green: #70af43;
    --bg-light: #f4f7f6;
    --text-dark: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* Mobile-First Container */
.container {
    width: 100%;
    max-width: 480px; /* Keeps it looking like a mobile app even on desktop */
    margin: 0 auto;
    padding: 20px;
}

/* Forms & Buttons */
.auth-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.auth-logo {
    display: block;
    margin: 0 auto 30px auto;
    max-width: 200px;
    height: auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px; /* 16px prevents iOS from auto-zooming! */
}

input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(112, 175, 67, 0.2);
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background-color: #5c9335;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: var(--primary-navy);
    text-decoration: none;
    font-weight: 600;
}

/* --- APP NAVIGATION --- */
.app-nav {
    background-color: var(--primary-navy);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* This controls your new 686x190 logo */
.app-nav .nav-logo {
    height: 40px; /* Keeps it contained within the header */
    width: auto;  /* Mathematically maintains your exact image proportions */
    display: block;
}

.app-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* --- DASHBOARD GRID (Mobile First) --- */
.dashboard-header {
    margin: 20px 0;
    color: var(--primary-navy);
}

.module-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 15px;
    margin-bottom: 30px;
}

/* If they are on a tablet/desktop, show 2 columns */
@media (min-width: 600px) {
    .module-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.module-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-green);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    transition: transform 0.1s;
}

.module-card:active {
    transform: scale(0.98); /* Satisfying little "tap" animation */
}

.module-card h3 {
    margin-bottom: 5px;
    color: var(--primary-navy);
}

.module-card p {
    font-size: 13px;
    color: var(--text-muted);
}