/* ============================================================
   GOLF ASSET MANAGEMENT - COMPACT STYLE
   ============================================================ */

:root {
    --golf-green: #1a472a;
    --golf-green-light: #2d5a27;
    --golf-green-dark: #0f2a18;
    --font-size-base: 0.875rem;   /* 14px base */
    --font-size-small: 0.8rem;     /* 13px */
    --font-size-smaller: 0.75rem;  /* 12px */
    --spacing-base: 0.5rem;
    --card-padding: 0.75rem;
}

/* ============================================================
   BASE
   ============================================================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* ============================================================
   NAVBAR - Compact
   ============================================================ */
.navbar {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 0.4rem 0.75rem;
    min-height: 44px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.navbar .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
}

.navbar .badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
}

.navbar .dropdown-menu {
    font-size: 0.85rem;
}

/* ============================================================
   CARDS - Compact
   ============================================================ */
.card {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 0.75rem;
}

.card-body {
    padding: var(--card-padding);
}

.card-header {
    background-color: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-text {
    font-size: var(--font-size-base);
    margin-bottom: 0.25rem;
}

/* Stats Cards - Compact */
.stats-card {
    border-radius: 8px;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.1s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-card .card-body {
    padding: 0.6rem 0.75rem;
}

.stats-card .card-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.1rem;
    opacity: 0.8;
}

.stats-card .display-6 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.stats-card small {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* ============================================================
   TABLES - Compact
   ============================================================ */
.table {
    font-size: var(--font-size-base);
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-top: none;
    padding: 0.4rem 0.5rem;
    background-color: #f8f9fa;
}

.table td {
    padding: 0.35rem 0.5rem;
    vertical-align: middle;
}

.table-sm td, .table-sm th {
    padding: 0.25rem 0.4rem;
}

/* ============================================================
   BADGES - Compact
   ============================================================ */
.badge {
    font-weight: 500;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
}

/* ============================================================
   FORMS - Compact
   ============================================================ */
.form-control, .form-select {
    border-radius: 6px;
    font-size: var(--font-size-base);
    padding: 0.3rem 0.6rem;
    min-height: 32px;
}

.form-control-sm {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    min-height: 28px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.form-text {
    font-size: 0.7rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--golf-green);
    box-shadow: 0 0 0 0.15rem rgba(26, 71, 42, 0.12);
}

.input-group-text {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
}

/* ============================================================
   BUTTONS - Compact
   ============================================================ */
.btn {
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.btn-sm {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
}

.btn .fa, .btn .fas, .btn .far {
    font-size: 0.8rem;
}

/* ============================================================
   PAGE HEADER - Compact
   ============================================================ */
.page-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.page-header h1, .page-header .h1, .page-header .h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}

.page-header .h2 small {
    font-size: 0.75rem;
    font-weight: 400;
}

/* ============================================================
   CONTAINER - Compact
   ============================================================ */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* ============================================================
   GRID GAPS - Compact
   ============================================================ */
.g-4 {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 0.5rem;
}

.mb-4 {
    margin-bottom: 0.75rem !important;
}

/* ============================================================
   ALERTS - Compact
   ============================================================ */
.alert {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.alert .btn-close {
    padding: 0.5rem;
    font-size: 0.7rem;
}

/* ============================================================
   FOOTER - Compact
   ============================================================ */
footer.footer {
    padding: 0.5rem 0;
    font-size: 0.75rem;
    background-color: #f8f9fa !important;
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* ============================================================
   UTILITY - Compact
   ============================================================ */
.text-muted {
    font-size: 0.8rem;
}

small, .small {
    font-size: 0.75rem;
}

/* Status colors */
.status-available { color: #198754; }
.status-installed { color: #0d6efd; }
.status-quarantine { color: #ffc107; }
.status-out-for-repair { color: #0dcaf0; }
.status-scrapped { color: #dc3545; }
.status-sold { color: #6c757d; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar, .btn, .no-print {
        display: none !important;
    }
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    body {
        background-color: white !important;
        font-size: 10pt !important;
    }
}

/* ============================================================
   RESPONSIVE - Mobile First
   ============================================================ */

/* Small devices (phones) */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .stats-card .display-6 {
        font-size: 1.2rem;
    }
    
    .stats-card .card-body {
        padding: 0.4rem 0.5rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table th, .table td {
        padding: 0.2rem 0.3rem;
    }
    
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        width: 100%;
    }
    
    .btn-group .btn {
        width: auto;
    }
    
    .page-header h1, .page-header .h2 {
        font-size: 1rem;
    }
}

/* Medium devices (tablets) */
@media (min-width: 577px) and (max-width: 992px) {
    .stats-card .display-6 {
        font-size: 1.4rem;
    }
}