/* =================================================================
   BASE & PUBLIC STYLES (No changes here)
   ================================================================= */
:root {
    --brand-primary: #b70d13;
    --brand-secondary: #fcebeb;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --bg-light: #f0f2f5; /* A slightly softer background */
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

/* ... other base styles like h1, p, .btn etc. remain the same ... */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 0.5rem; text-decoration: none; font-weight: 600; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; }
.btn-primary { background-color: var(--brand-primary); color: white; }
.btn-secondary { background-color: #6c757d; color: white; }


/* =================================================================
   NEW: ADMIN AREA STYLES (Add this entire section)
   ================================================================= */

/* General Admin Layout */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Card design for all admin sections */
.admin-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* For the Stats View page */
.log-entry-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.log-entry-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.metric-box {
    text-align: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.metric-box .label {
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
}

.metric-box .value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.25rem;
}

.note-box {
    margin-top: 1.5rem;
}
.note-box .label {
    font-weight: 600;
    color: #374151;
}
.note-box .value {
    display: block;
    margin-top: 0.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    color: #4b5563;
    white-space: pre-wrap; /* Preserves line breaks in notes */
}
