:root {
    --bs-primary: #721414;
    --bs-primary-rgb: 114, 20, 20;
    --bs-primary-hover: #5a1010;
    --bs-primary-dark: #4a0d0d;
    --bs-brand-secondary: #e0d8b0;
    --bs-brand-secondary-rgb: 224, 216, 176;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
}

.navbar {
    border-bottom: 3px solid rgba(255,255,255,0.1);
}

.navbar.bg-primary {
    background-color: var(--bs-primary) !important;
}

.card {
    transition: all 0.2s ease;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

.badge {
    font-weight: 500;
}

.badge.bg-primary {
    background-color: var(--bs-primary) !important;
}

.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-hover));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--bs-primary-hover), var(--bs-primary-dark));
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-lg {
    border-radius: 12px;
}

.form-control-lg, .form-select-lg {
    border-radius: 12px;
}

.input-group-lg .input-group-text {
    border-radius: 12px 0 0 12px;
}

.navbar-brand {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .table {
        font-size: 0.85rem;
    }
    .text-truncate {
        max-width: 150px !important;
    }
}

/* Brand secondary utility classes */
.btn-brand {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-hover)) !important;
    border: none !important;
    color: #fff !important;
}
.btn-brand:hover,
.btn-brand:active {
    background: linear-gradient(135deg, var(--bs-primary-hover), var(--bs-primary-dark)) !important;
    color: #fff !important;
}

.btn-brand-secondary {
    background-color: var(--bs-brand-secondary) !important;
    border: 1px solid var(--bs-brand-secondary) !important;
    color: #333 !important;
}
.btn-brand-secondary:hover,
.btn-brand-secondary:active {
    background-color: #d4c89a !important;
    border-color: #d4c89a !important;
    color: #333 !important;
}

.btn-outline-brand {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    background: transparent !important;
}
.btn-outline-brand:hover,
.btn-outline-brand:active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

.badge.bg-brand {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.badge.badge-outline-brand {
    background-color: #fff !important;
    color: var(--bs-primary) !important;
    border: 1px solid var(--bs-primary) !important;
}

.badge.bg-brand-secondary {
    background-color: var(--bs-brand-secondary) !important;
    color: #333 !important;
}

.bg-brand {
    background-color: var(--bs-primary) !important;
}

.bg-brand-secondary {
    background-color: var(--bs-brand-secondary) !important;
}

.progress-bar.bg-brand {
    background-color: var(--bs-primary) !important;
}

.progress-bar.bg-brand-secondary {
    background-color: var(--bs-brand-secondary) !important;
    color: #333;
}
