:root {
    --hp-primary: #0d47a1;
    --hp-primary-soft: #1976d2;
    --hp-accent: #ffb300;
    --hp-surface: #ffffff;
    --hp-surface-soft: #e3f2fd;
    --hp-border-subtle: rgba(13, 71, 161, 0.08);
    --hp-shadow-soft: 0 10px 25px rgba(13, 71, 161, 0.13);
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #e3f2fd 0, #ffffff 45%, #e3f2fd 100%);
    color: #0b1020;
}

main.container {
    max-width: 1120px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    animation: hp-fade-in 0.45s ease-out;
}

.hp-card .card-body {
    padding: 1.25rem 1.5rem;
}

.hp-page-header {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hp-page-header {
        margin-bottom: 2rem;
    }
}

.hp-page-title {
    font-size: 1.5rem;
    font-weight: 600;
}

@media (min-width: 992px) {
    .hp-page-title {
        font-size: 1.75rem;
    }
}

.hp-page-subtitle {
    font-size: 0.9rem;
    color: #607d8b;
}

.hp-section {
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hp-section {
        margin-bottom: 2rem;
    }
}

.hp-section-heading {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--hp-primary);
}

.navbar {
    background: linear-gradient(90deg, var(--hp-primary) 0%, var(--hp-primary-soft) 60%, #42a5f5 100%) !important;
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.28);
}

.navbar-brand {
    color: #ffffff !important;
    letter-spacing: 0.04em;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.18s ease-out, transform 0.14s ease-out, opacity 0.18s ease-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffffff !important;
    transform: translateY(-1px);
    opacity: 1;
}

.navbar-nav .nav-link.hp-nav-active {
    color: #ffffff !important;
    font-weight: 600;
    position: relative;
    background: rgba(13, 71, 161, 0.22);
    border-radius: 999px;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.hp-nav-active::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    animation: hp-nav-underline 0.35s ease-out;
    transform-origin: center;
}

.hp-card {
    background: var(--hp-surface);
    border-radius: 18px;
    border: 1px solid var(--hp-border-subtle);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.hp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-soft);
    border-color: rgba(13, 71, 161, 0.25);
}

.hp-card-accent {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05), rgba(25, 118, 210, 0.12));
}

.card-title-muted {
    color: #607d8b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.hp-pill {
    border-radius: 999px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hp-primary-soft), var(--hp-primary));
    border: none;
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.35);
    transition: transform 0.12s ease-out, box-shadow 0.18s ease-out, filter 0.12s ease-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.5);
    filter: brightness(1.03);
}

.btn-outline-secondary {
    border-radius: 999px;
}

.badge.bg-success {
    background: linear-gradient(135deg, #43a047, #2e7d32) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #e53935, #c62828) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffb300, #ffa000) !important;
}

.hp-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .hp-header-actions {
        justify-content: flex-start;
    }
}

.hp-date-filter-form {
    flex-wrap: nowrap;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
}

.hp-date-filter-form select {
    min-width: 150px;
}

.table-responsive {
    border-radius: 0.75rem;
}

.table {
    min-width: 640px;
}

@media (max-width: 575.98px) {
    .hp-date-filter-form {
        flex-wrap: wrap;
    }
}

.hp-fade-up {
    animation: hp-fade-up 0.45s ease-out;
}

.hp-fade-up-delayed {
    animation: hp-fade-up 0.55s ease-out;
}

.hp-fade-up-late {
    animation: hp-fade-up 0.65s ease-out;
}

@keyframes hp-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hp-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
        scale: 0.98;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        scale: 1;
    }
}

@keyframes hp-nav-underline {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}
