/*
    Santo Expedito - High-End Design System v2.0
    Consolidated Global Styles
*/

:root {
    --bg-dark: #07090e;
    --bg-card: rgba(30, 41, 59, 0.7);
    --accent-blue: #38bdf8;
    --accent-blue-glow: rgba(56, 189, 248, 0.4);
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Background Decor --- */
.bg-glow {
    position: fixed;
    top: -10%; left: 50%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    filter: blur(120px);
    opacity: 0.15;
}

/* --- Navbar Evolution (Global) --- */
.navbar-custom {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 9, 14, 0.75);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-small {
    height: 35px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.2));
    transition: var(--transition-smooth);
}

.page-header-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* --- Buttons --- */
.btn-back {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-blue);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: var(--accent-blue);
    color: #000;
    transform: translateY(-2px);
}

.btn-primary-custom {
    background: var(--accent-blue);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-blue-glow);
}

/* --- Cards --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    transition: var(--transition-smooth);
}

/* --- Typography --- */
.text-dim { color: var(--text-dim) !important; }
.fw-black { font-weight: 900; }

/* --- Form Elements Standards --- */
.form-label {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-control, .form-select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--glass-border) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    transition: var(--transition-smooth) !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(56, 189, 248, 0.05) !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1) !important;
}

/* 🔹 Dark Mode Select Dropdown Fix */
select option {
    background-color: #07090e !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25) !important;
    font-size: 0.85rem;
}

/* 🔹 Dark Mode Date Picker Fix */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5);
    cursor: pointer;
    opacity: 1;
}

/* --- Badges & Indicators --- */
.badge-status {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    cursor: help;
}

.badge-status i.status-dot {
    font-size: 0.5rem;
    filter: drop-shadow(0 0 5px currentColor);
}

.badge-status:hover {
    transform: translateY(-1px);
    filter: brightness(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 10px; }

/* --- Global Status Help Modal --- */
#statusHelpOverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    padding: 24px;
}

.status-help-card {
    background: var(--bg-card);
    width: 95%;
    max-width: 400px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.status-help-header {
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.status-help-header i { font-size: 3.5rem; }

.status-help-body {
    padding: 32px 24px;
    text-align: center;
}

.status-help-desc {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
}

.status-help-footer {
    padding: 0 24px 32px;
}

#btnCloseStatus {
    background: var(--accent-blue);
    color: #000;
    font-weight: 800;
    border: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    transition: var(--transition-smooth);
}

#btnCloseStatus:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* --- Global Image Overlay (Zoom Standard) --- */
.image-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 9, 14, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    cursor: zoom-out;
}

.overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.overlay-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
}

.btn-close-overlay {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
}

/* --- Global Thumbnails --- */
.img-thumb-mini {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.img-thumb-mini:hover {
    transform: scale(1.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.img-placeholder-mini {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1.2rem;
}
