/*
 * DPAS UPI — CMS additions on top of Filament's compiled CSS (no build step needed).
 * Registered as a panel asset; published to public/css/app/dpas-admin.css by `php artisan filament:assets`.
 */

/* ---------- Login (mirrors _template/admin-login.html) ---------- */
.dpas-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    color: #1f2937;
}
@media (min-width: 1024px) {
    .dpas-login { grid-template-columns: 1fr 1fr; }
}
/* Filament injects extra containers (modals, notifications) into the page root; keep them out of the grid rows. */
.dpas-login > :not(.dpas-login-brand):not(.dpas-login-main) { display: contents; }
.dpas-login-brand {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(26, 35, 126, 0.18), transparent 40%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a0707 100%);
}
@media (min-width: 1024px) {
    .dpas-login-brand { display: flex; }
}
.dpas-login-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.dpas-login-brand > * { position: relative; z-index: 1; }
.dpas-login-logo img {
    height: 150px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.dpas-login-logo-fallback {
    width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 900; font-size: 1.125rem;
}
.dpas-login-copy { max-width: 28rem; }
.dpas-login-copy h1 { font-size: 2.25rem; line-height: 1.15; font-weight: 900; margin: 0 0 1.25rem; }
.dpas-login-copy > p { color: rgba(255, 255, 255, 0.6); font-size: 1rem; line-height: 1.65; margin: 0 0 2rem; }
.dpas-login-features { display: flex; flex-direction: column; gap: 0.875rem; }
.dpas-login-feature { display: flex; gap: 0.875rem; align-items: flex-start; }
.dpas-login-feature-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(122, 21, 21, 0.15); border: 1px solid rgba(122, 21, 21, 0.3); color: #f5c6cb;
}
.dpas-login-feature-icon svg { width: 1rem; height: 1rem; }
.dpas-login-feature-title { font-weight: 600; font-size: 0.875rem; margin: 0 0 0.125rem; }
.dpas-login-feature-text { font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); line-height: 1.6; margin: 0; }
.dpas-login-copyright { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); margin: 0; }

.dpas-login-main {
    display: flex; flex-direction: column; justify-content: center;
    padding: 2.5rem 1.5rem;
}
@media (min-width: 640px) { .dpas-login-main { padding: 2.5rem 3rem; } }
@media (min-width: 1024px) { .dpas-login-main { padding: 2.5rem 4rem; } }
.dpas-login-mobile-brand {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin: 0 auto 2rem; font-weight: 900; font-size: 1.125rem; color: #111827;
}
@media (min-width: 1024px) { .dpas-login-mobile-brand { display: none; } }
.dpas-login-mobile-mark {
    width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: #111827; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.875rem;
}
.dpas-login-card { width: 100%; max-width: 28rem; margin: 0 auto; }
.dpas-login-badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
    color: #5a0e0e; background: #fdf2f2; border: 1px solid #fce4ec;
    padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem;
}
.dpas-login-badge svg { width: 0.75rem; height: 0.75rem; }
.dpas-login-heading { font-size: 1.875rem; font-weight: 900; color: #111827; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.dpas-login-subheading { font-size: 0.875rem; color: #6b7280; margin: 0 0 2rem; }
.dpas-login .fi-input-wrp { border-radius: 0.75rem; }
.dpas-login .fi-fo-field-label-content { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #4b5563; }
.dpas-login .fi-btn { border-radius: 0.75rem; padding-top: 0.875rem; padding-bottom: 0.875rem; font-weight: 700; }
.dpas-login-footer {
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #f3f4f6;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.dpas-login-footer a { font-size: 0.75rem; color: #6b7280; font-weight: 500; display: inline-flex; align-items: center; gap: 0.375rem; }
.dpas-login-footer a:hover { color: #374151; }
.dpas-login-footer svg { width: 0.875rem; height: 0.875rem; }
.dpas-login-footer .dpas-login-muted { color: #9ca3af; font-weight: 400; }

/* ---------- Generic blocks used by dashboard / laporan / database pages ---------- */
.dpas-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.dpas-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .dpas-grid-2 { grid-template-columns: 1fr 1fr; } }

.dpas-quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 1024px) { .dpas-quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dpas-quick-action { width: 100%; justify-content: center; }

.dpas-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .dpas-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dpas-card {
    background: #fff; border-radius: 0.75rem; padding: 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); outline: 1px solid rgba(3, 7, 18, 0.05);
}
.dpas-card-center { text-align: center; }
.dpas-card-label { font-size: 0.75rem; color: #6b7280; font-weight: 500; margin: 0; }
.dpas-card-value { font-size: 1.875rem; font-weight: 800; color: #111827; margin: 0.25rem 0; line-height: 1.2; }
.dark .dpas-card { background: rgb(24 24 27); outline-color: rgba(255, 255, 255, 0.1); }
.dark .dpas-card-value { color: #f9fafb; }
.dark .dpas-card-label { color: #9ca3af; }

.dpas-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1rem; }
.dpas-filter { display: flex; flex-direction: column; gap: 0.375rem; min-width: 14rem; flex: 1 1 14rem; max-width: 24rem; }
.dpas-filter-label { font-size: 0.75rem; font-weight: 600; color: #4b5563; }
.dark .dpas-filter-label { color: #d1d5db; }

.dpas-table-wrap { overflow-x: auto; margin: -0.25rem; }
.dpas-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.dpas-table th { text-align: left; font-size: 0.75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.625rem 0.75rem; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.dpas-table td { padding: 0.75rem; border-bottom: 1px solid #f3f4f6; color: #374151; }
.dpas-table tfoot td { border-bottom: 0; border-top: 1px solid #e5e7eb; }
.dpas-table .dpas-num { text-align: right; white-space: nowrap; }
.dpas-strong { font-weight: 600; color: #111827; }
.dpas-muted { color: #6b7280; font-size: 0.875rem; }
.dark .dpas-table th { color: #9ca3af; border-color: rgba(255, 255, 255, 0.1); }
.dark .dpas-table td { color: #d1d5db; border-color: rgba(255, 255, 255, 0.05); }
.dark .dpas-strong { color: #f9fafb; }
.dark .dpas-muted { color: #9ca3af; }
.dpas-tabs { overflow-x: auto; }
