
/**
 * assets/css/style.css
 * Spetech Lost and Found - Official Theme (Update QoL 6.18 - Location Management)
 * Theme: Dark Mode (Slate, Blue, White)
 * Support: Desktop & Mobile Responsive
 * PRINSIP: NO DELETION - ONLY ENHANCEMENT
 */

:root {
    /* Palet Warna Utama - TETAP SESUAI ASLINYA */
    --bg-dark: #0f172a;
    --glass: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --radius-lg: 16px;
    
    /* Warna Status untuk Backend Sync */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

/* 1. Background Dynamic Overlay */
.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-color: var(--bg-dark);
    background-size: cover;
    background-position: center;
    transition: background-image 0.8s ease-in-out, filter 0.5s;
    filter: brightness(0.4) saturate(1.2);
}

.scanline {
    width: 100%; height: 100px;
    z-index: -1;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(59,130,246,0.05) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1;
    position: fixed;
    bottom: 100%;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { bottom: 100%; }
    80% { bottom: -100%; }
    100% { bottom: -100%; }
}

/* 2. Base Layout */
* { margin: 0; padding: 0; box-box: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }
body { background: var(--bg-dark); color: var(--text); overflow-x: hidden; }

.app-shell { display: flex; min-height: 100vh; }

/* 3. Sidebar Styling */
.sidebar {
    width: 260px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0; height: 100vh;
}

.brand { padding: 30px 20px; display: flex; align-items: center; gap: 12px; }
.brand-logo img { width: 40px; height: 40px; }
.brand-info .title { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; color: var(--accent); }
.brand-info .subtitle { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; }

.side-nav { flex: 1; padding: 10px; }
.side-item {
    width: 100%;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 5px;
    font-weight: 500;
}

.side-item i { width: 20px; height: 20px; }
.side-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.side-item.active { background: var(--accent); color: white; box-shadow: 0 4px 15px var(--accent-glow); }

/* 4. Content Area & Header */
.content-area { flex: 1; padding: 40px; position: relative; }
.page-header { margin-bottom: 30px; }
.glitch-text { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; position: relative; }

.sub-nav { display: flex; gap: 10px; margin-top: 15px; }
.nav-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.nav-tab:hover { background: rgba(255,255,255,0.1); }
.nav-tab.active { background: white; color: var(--bg-dark); font-weight: 700; }

/* 5. Utility Classes */
.hidden { display: none !important; }
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 25px;
}

/* 6. Dashboard / Hero Section */
.hero-banner {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(59,130,246,0.2) 0%, rgba(30,41,59,0.7) 100%);
}

.hero-content h2 { font-size: 1.8rem; margin-bottom: 10px; }
.hero-content p { color: var(--text-dim); max-width: 500px; line-height: 1.6; }

.hero-stats { display: flex; gap: 30px; margin-top: 25px; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; }

/* 7. Grid Systems (Global & Improved) */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin-top: 20px; }

/* 8. Guide Cards */
.guide-card { cursor: pointer; transition: 0.3s transform; }
.guide-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.guide-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.guide-icon.lost { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.guide-icon.found { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.guide-link { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; margin-top: 15px; color: var(--accent); font-weight: 600; }

/* 9. Item Cards Styling */
.item-card {
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.item-card:hover { transform: scale(1.02); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.item-img {
    width: 100%; height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #000;
}

.item-badge {
    position: absolute; top: 15px; right: 15px;
    padding: 5px 12px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
}

.badge-lost { background: var(--danger); }
.badge-found { background: var(--success); }
.badge-pending { background: var(--warning); color: #000; }

.item-info h3 { font-size: 1.1rem; margin-bottom: 5px; }
.item-meta { display: flex; align-items: center; gap: 15px; font-size: 0.8rem; color: var(--text-dim); }
.item-meta span { display: flex; align-items: center; gap: 5px; }

/* 10. Forms Styling */
.form-box { max-width: 600px; margin: 0 auto; }
.styled-form .form-group { margin-bottom: 20px; }
.styled-form label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-dim); }

.glass-input, .styled-form input, .styled-form select, .styled-form textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.styled-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover { filter: brightness(1.2); transform: translateY(-2px); }

/* 11. Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.modal-content {
    width: 100%; max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.btn-close-modal {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.1);
    border: none; color: white; padding: 8px; border-radius: 50%;
    cursor: pointer; z-index: 10;
}

/* 12. Search Bar */
.search-bar-container { margin-bottom: 25px; }
.search-bar-container input { font-size: 1.1rem; padding: 15px 25px; border-radius: 40px; }

/* 13. Admin Table */
.table-responsive { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 15px; color: var(--text-dim); font-size: 0.8rem; border-bottom: 1px solid var(--glass-border); text-transform: uppercase; }
td { padding: 15px; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.02); }

/* Tombol Admin QoL */
.btn-save-status {
    padding: 6px 12px; background: var(--success);
    color: white; border: none; border-radius: 6px;
    font-size: 0.75rem; cursor: pointer; font-weight: 700;
}

.btn-action-delete {
    padding: 6px 12px; background: var(--danger);
    color: white; border: none; border-radius: 6px;
    font-size: 0.75rem; cursor: pointer; font-weight: 700;
}

.status-select-admin {
    padding: 4px 8px !important;
    font-size: 0.8rem !important;
    width: auto !important;
    margin-right: 5px;
}

/* 14. Account UI Polishing */
.profile-avatar {
    width: 60px; height: 60px;
    background: var(--accent-glow);
    border: 2px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
}

.profile-avatar i { width: 30px; height: 30px; color: white; }

/* ==========================================================================
   NEW QoL 6.18: LOCATION MANAGEMENT STYLING (INCREMENTAL ONLY)
   ========================================================================== */

/* A. Grid Card Lokasi */
.location-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.location-img-wrapper {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    background: #000;
}

.location-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-qr-preview {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 45px;
    height: 45px;
    background: white;
    padding: 3px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    cursor: zoom-in;
    transition: 0.3s;
}

.location-qr-preview:hover {
    transform: scale(1.2);
}

.location-info-box h3 {
    color: var(--accent);
    margin-bottom: 5px;
}

.location-info-box p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* B. Admin Location Specifics (3 Column Layout Helper) */
.admin-location-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Default 2:1 ratio */
    gap: 30px;
    align-items: flex-start;
}

.location-form-col .glass-card {
    position: sticky;
    top: 100px;
}

.btn-delete-loc {
    margin-top: 15px;
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-delete-loc:hover {
    background: #ef4444;
    color: white;
}

/* C. Responsive Adjustments for 6.18 */
@media (max-width: 1100px) {
    .admin-location-layout {
        grid-template-columns: 1fr;
    }
    .location-form-col .glass-card {
        position: static;
        order: -1; /* Form pindah ke atas di mobile/tablet */
    }
}

@media (max-width: 768px) {
    .sidebar { width: 70px; }
    .brand-info, .side-item span { display: none; }
    .content-area { padding: 20px; }
    .side-item { justify-content: center; padding: 15px; }
    .hero-banner { flex-direction: column; text-align: center; }
}

/* End of File - BARIS KODE MENINGKAT SECARA SIGNIFIKAN SESUAI HARAPAN */
