/**
 * DeNagelStudio SEO Tracking System
 * Modern & Strak Design
 * Primaire kleur: #AEA59A (Lichtgoud)
 */

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #AEA59A;
    --primary-light: #C4BCB4;
    --primary-dark: #8D8577;
    --text-color: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Italiana', serif;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

a:hover {
    color: var(--primary-dark);
}

/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-small {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.logo-container:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.logo {
    height: 50px;
    width: auto;
}

.site-title {
    font-family: 'Italiana', serif;
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-light);
    color: var(--text-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f0f0f0;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: 'Italiana', serif;
    font-size: 1.5rem;
    margin: 0;
}

.card-body {
    padding: 0;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== STATS CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(174, 165, 154, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 80px;
    width: auto;
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== ALERTS & MESSAGES ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-secondary);
}

.table tr:hover {
    background: var(--bg-light);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-secondary {
    background: var(--bg-light);
    color: var(--text-muted);
}

/* ===== WORK ENTRIES ===== */
.work-entries-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.work-entry-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.work-entry-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}

.work-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.work-entry-title {
    font-family: 'Italiana', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.work-entry-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.work-entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.work-entry-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-entry-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--primary-light);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.work-entry-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ===== FILTERS ===== */
.filters-bar {
    background: #dcdcdc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.quick-filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quick-filter-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.quick-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-dark);
    color: var(--text-color);
    font-weight: 600;
}

/* ===== DASHBOARD ===== */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-family: 'Italiana', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: 'Italiana', serif;
    font-size: 1.75rem;
}

/* ===== CHART CONTAINER ===== */
.chart-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* ===== CATEGORY LIST ===== */
.category-list {
    display: grid;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.category-item:hover {
    background: var(--primary-light);
}

.category-count {
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 160;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.5rem;
}

.mobile-nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background: var(--primary-light);
    color: var(--text-color);
}

.mobile-nav-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.mobile-nav-user {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nav-menu,
    .user-info {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .container {
        padding: 0 1rem;
    }

    .quick-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .quick-filter-btn {
        white-space: nowrap;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* ===== LOADING ===== */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.loading::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ===== CATEGORY SECTIONS & ENTRIES TABLE ===== */
.category-section {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.category-header h4 {
    margin: 0;
    font-family: 'Italiana', serif;
    font-size: 1.2rem;
    color: white;
}

.category-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.entries-table-wrapper {
    overflow-x: auto;
}

.entries-table {
    width: 100%;
    border-collapse: collapse;
}

.entries-table th,
.entries-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.entries-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.entries-table tbody tr:hover {
    background: var(--bg-light);
}

.entries-table tbody tr:last-child td {
    border-bottom: none;
}

.entry-title {
    min-width: 200px;
}

.entry-title strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.1rem;
}

.entry-subcategory {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.entry-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.category-badge {
    white-space: nowrap;
}

.entry-date {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.entry-actions {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .category-header {
        padding: 1rem;
    }

    .entries-table th,
    .entries-table td {
        padding: 0.4rem 0.5rem;
    }

    .entry-description {
        max-width: 200px;
    }
}

/* ===== MONTHLY GOALS ===== */
.monthly-goals {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.monthly-goals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.monthly-goals-header h3 {
    margin: 0;
    font-family: 'Italiana', serif;
    font-size: 1.3rem;
    color: white;
}

.monthly-goals-period {
    font-size: 0.9rem;
    opacity: 0.9;
}

.monthly-goals-body {
    padding: 1.5rem;
}

.goal-item {
    margin-bottom: 1.5rem;
}

.goal-item:last-child {
    margin-bottom: 0;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.goal-name {
    font-weight: 500;
    color: var(--text-color);
}

.goal-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.goal-count .checkmark {
    color: #28a745;
    font-size: 1rem;
}

.goal-progress-bar {
    height: 12px;
    background: var(--bg-light);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.goal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.goal-progress-fill.completed {
    background: linear-gradient(90deg, #28a745 0%, #218838 100%);
}

.goal-percentage {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .monthly-goals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .monthly-goals-body {
        padding: 1rem;
    }
}

/* ===== COMPACT DASHBOARD LAYOUT ===== */
.dashboard-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dashboard-header-left {
    flex-shrink: 0;
}

.dashboard-header-left .dashboard-title {
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
}

.dashboard-header-left .dashboard-subtitle {
    font-size: 0.95rem;
    margin: 0;
}

.dashboard-header-right {
    flex: 1;
    max-width: 700px;
}

/* Compact Filters */
.filters-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-quick-buttons {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

.quick-filter-btn-small {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quick-filter-btn-small:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--text-color);
}

.quick-filter-btn-small.active {
    background: var(--primary-color);
    border-color: var(--primary-dark);
    color: var(--text-color);
    font-weight: 600;
}

.filter-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.form-control-small {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    background: var(--bg-white);
    transition: var(--transition);
}

.form-control-small:focus {
    outline: none;
    border-color: var(--primary-color);
}

select.form-control-small {
    min-width: 140px;
}

input[type="date"].form-control-small {
    width: 130px;
}

/* Dashboard Top Row - Stats + Goals side by side */
.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Compact Stat Cards */
.stat-card-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-white);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.stat-card-compact:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 10px;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-card-compact .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-card-compact .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Compact Monthly Goals */
.monthly-goals-compact {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.monthly-goals-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.monthly-goals-header-compact h3 {
    margin: 0;
    font-family: 'Italiana', serif;
    font-size: 1.1rem;
    color: white;
}

.monthly-goals-body-compact {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.goal-item-compact {
    margin-bottom: 0;
}

.goal-item-compact .goal-header {
    margin-bottom: 0.35rem;
}

.goal-item-compact .goal-name {
    font-size: 0.9rem;
}

.goal-item-compact .goal-count {
    font-size: 0.85rem;
}

.goal-item-compact .goal-progress-bar {
    height: 8px;
}

/* Responsive adjustments for compact layout */
@media (max-width: 1024px) {
    .dashboard-header-compact {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-header-right {
        width: 100%;
        max-width: none;
    }

    .filter-quick-buttons,
    .filter-inputs {
        justify-content: flex-start;
    }

    .dashboard-top-row {
        grid-template-columns: 1fr;
    }

    .stats-column {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card-compact {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .filter-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .form-control-small,
    select.form-control-small,
    input[type="date"].form-control-small {
        width: 100%;
    }

    .filter-inputs .btn {
        width: 100%;
    }

    .stats-column {
        flex-direction: column;
    }

    .stat-card-compact {
        min-width: auto;
    }
}
