:root {
    --bpkd-blue: #0099df;
    --bpkd-dark: #1e293b;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f1f5f9;
    color: var(--bpkd-dark);
}

.navbar-custom {
    background-color: #ffffff;
    border-bottom: 3px solid var(--bpkd-blue);
}
.navbar-brand img,
.navbar-custom img {
    height: 45px;
    object-fit: contain;
}
.app-title {
    font-size: 1.15rem;
}
.app-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.card-custom {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: none;
    background: #fff;
}

.form-control:focus {
    border-color: var(--bpkd-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 153, 223, 0.25);
}
.table-hover tbody tr:hover {
    background-color: #f8fafc;
}
.agenda-table {
    font-size: 0.9rem;
}
.realtime-countdown {
    font-size: 0.85rem;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.cal-head {
    font-weight: bold;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    padding-bottom: 5px;
}
.cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.2s;
}
.cal-day:hover {
    background: #e0f2fe;
    border-color: var(--bpkd-blue);
}
.cal-today {
    border: 2px solid var(--bpkd-blue) !important;
    color: var(--bpkd-blue) !important;
    font-weight: bold;
    background: #f0f9ff;
}
.cal-holiday {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    font-weight: bold;
    border-color: #fca5a5;
}
.cal-important {
    background: #fffbeb !important;
    color: #d97706 !important;
    font-weight: bold;
    border-color: #fcd34d;
}
.cal-selected {
    outline: 3px solid rgba(0, 153, 223, 0.25);
    outline-offset: 1px;
}
#dateInfo {
    min-height: 55px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.85rem;
}

.btn-toggle {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
}
.btn-toggle.active {
    background-color: var(--bpkd-blue);
    color: white;
    border-color: var(--bpkd-blue);
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 153, 223, 0.18), transparent 35%),
        linear-gradient(135deg, #e0f2fe 0%, #f8fafc 45%, #ffffff 100%);
}
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-panel {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 24px;
    padding: 34px;
    border-top: 5px solid var(--bpkd-blue);
}
.login-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
}
.login-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--bpkd-dark);
    margin-bottom: 6px;
}
.login-form .input-group-text {
    background: #eff6ff;
    color: var(--bpkd-blue);
    border-color: #dbeafe;
}
.login-form .form-control {
    border-color: #dbeafe;
}

.add-agenda-card {
    border-top: 4px solid var(--bpkd-blue);
}
.add-agenda-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--bpkd-blue);
    background: #e0f2fe;
}
.agenda-modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}
.agenda-modal-content .modal-header,
.agenda-modal-content .modal-body,
.agenda-modal-content .modal-footer {
    padding-left: 28px;
    padding-right: 28px;
}

.nearest-agenda-card {
    border-radius: 16px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(0, 153, 223, 0.12), rgba(255, 255, 255, 0.96)),
        #ffffff;
    border: 1px solid rgba(0, 153, 223, 0.18);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
.nearest-agenda-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--bpkd-blue);
    box-shadow: 0 10px 18px rgba(0, 153, 223, 0.25);
}
.nearest-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    gap: 10px;
}
.nearest-countdown div {
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
}
.nearest-countdown strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
    color: var(--bpkd-blue);
}
.nearest-countdown span {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #64748b;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    .nearest-countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
