:root {
    --primary-brand: #801313;
    --primary-hover: #5a0b0b;
    --bg-body: #f0f2f5;
    --text-dark: #343a40;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body {
    background-color: var(--bg-body);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
}

/* Navbar */
.navbar-custom {
    background-color: var(--primary-brand);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
}
.navbar-custom .nav-link {
    color: rgba(255,255,255,0.85) !important;
    margin-left: 10px;
    font-weight: 500;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

/* Cards */
.card-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
    border: none;
    border-top: 4px solid var(--primary-brand);
}

/* Buttons */
.btn-brand {
    background-color: var(--primary-brand);
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}
.btn-brand:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 6px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-brand);
    box-shadow: 0 0 0 0.25rem rgba(128, 19, 19, 0.15);
}

/* Status Badges */
.badge-status {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}
.status-done { background-color: #d1e7dd; color: #0f5132; }
.status-closed { background-color: #212529; color: #fff; }
.status-waiting { background-color: #fff3cd; color: #664d03; }
.status-default { background-color: #e2e3e5; color: #41464b; }

/* Login */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-brand), #222);
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Stats */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
    height: 100%;
}
.stat-card:hover { transform: translateY(-5px); }
.stat-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white; margin-bottom: 15px;
}