/* ============================================
   Shared Styles — Digunakan oleh semua halaman
   ============================================ */

/* Tab system */
.tab-pane { display: none; animation: fadeSlideUp 0.3s ease; }
.tab-pane.active { display: block; }

/* Photo Viewer (fullscreen overlay) */
.photo-viewer-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.photo-viewer-overlay.active { opacity: 1; visibility: visible; }
.photo-viewer-overlay img {
    max-width: 95vw; max-height: 90vh; object-fit: contain;
    border-radius: 12px; transition: opacity 0.3s, transform 0.3s ease;
}
.photo-viewer-title {
    position: absolute; top: 1.25rem; left: 50%; transform: translateX(-50%);
    color: white; font-size: 14px; font-weight: 600;
    background: rgba(0,0,0,0.6); padding: 8px 20px; border-radius: 24px;
    backdrop-filter: blur(8px);
}
.photo-viewer-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); color: white;
    font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.25s; backdrop-filter: blur(8px);
}
.photo-viewer-close:hover { background: rgba(255,255,255,0.2); transform: scale(1.05); }
.photo-viewer-zoom-controls {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.5rem; z-index: 3001;
}
.photo-viewer-zoom-btn {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15); color: white;
    font-size: 20px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.25s; backdrop-filter: blur(8px);
}
.photo-viewer-zoom-btn:hover { background: rgba(255,255,255,0.25); transform: scale(1.05); }
.photo-viewer-zoom-label {
    position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5); font-size: 11px; z-index: 3001;
}

/* Photo Grid & Box (petugas & adminbidang) */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1rem; }
.photo-box {
    background: var(--bg-glass); border: 2px dashed var(--border-color);
    border-radius: var(--radius-md); text-align: center; padding: 1rem 0.5rem;
    position: relative; cursor: pointer; transition: all 0.3s;
    min-height: 140px; display: flex; flex-direction: column;
    justify-content: center; align-items: center; overflow: hidden;
}
.photo-box:hover { border-color: var(--text-muted); }
.photo-box.has-file { border-style: solid; border-color: var(--emerald); }
.photo-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; z-index: 1; }
.photo-box.has-file img { opacity: 0.8; }
.photo-box .content { position: relative; z-index: 2; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* Sub-tab pane animation */
.sub-tab-pane { animation: fadeSlideUp 0.3s ease; }