/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #0b2046;
    --primary-light: #1e3a8a;
    --accent: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #9ca3af;
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --sidebar-width: 260px;
    --header-height: 70px;
    --danger: #ef4444;
    --success: #10b981;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-body); color: var(--text-dark); display: flex; overflow-x: hidden; }

/* --- MAIN LAYOUT --- */
.main-wrapper { flex: 1; margin-left: var(--sidebar-width); transition: all 0.3s ease; display: flex; flex-direction: column; min-height: 100vh; }
.main-wrapper.collapsed { margin-left: 0; }
.content-container { padding: 30px; flex: 1; }

/* --- TOP HEADER --- */
.top-header { height: var(--header-height); background: var(--bg-white); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-left { display: flex; align-items: center; gap: 20px; }
.menu-toggle { font-size: 1.2rem; cursor: pointer; color: var(--text-dark); transition: color 0.3s; }
.menu-toggle:hover { color: var(--accent); }
.branch-badge { background: #e0e7ff; color: var(--primary-light); padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 25px; }
.header-icon { font-size: 1.2rem; color: var(--text-light); cursor: pointer; position: relative; transition: color 0.3s; }
.header-icon:hover { color: var(--primary); }
.header-icon .badge { position: absolute; top: -5px; right: -5px; background: var(--danger); color: white; font-size: 0.65rem; padding: 2px 5px; border-radius: 50%; font-weight: bold; }

.user-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.user-profile img { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.user-profile .name { font-weight: 500; font-size: 0.95rem; }

/* --- SIDEBAR --- */
.sidebar { width: var(--sidebar-width); background: var(--primary); color: white; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; transition: all 0.3s ease; z-index: 1000; box-shadow: 4px 0 15px rgba(0,0,0,0.1); }
.sidebar.collapsed { left: calc(var(--sidebar-width) * -1); }
.sidebar-brand { height: var(--header-height); display: flex; align-items: center; padding: 0 25px; font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand span { color: var(--accent); }

.sidebar-menu { list-style: none; padding: 20px 0; }
.sidebar-menu li { padding: 5px 20px; margin-bottom: 5px; }
.sidebar-menu a { display: flex; align-items: center; gap: 15px; color: #cbd5e1; text-decoration: none; padding: 12px 20px; border-radius: 8px; transition: all 0.3s ease; font-weight: 500; font-size: 0.95rem; }
.sidebar-menu a:hover, .sidebar-menu a.active { background: rgba(255,255,255,0.1); color: white; }
.sidebar-menu a.active { border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }
.sidebar-menu i { width: 20px; text-align: center; font-size: 1.1rem; }
.menu-header { color: #64748b; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; padding: 15px 25px 5px; margin-top: 10px; }

/* --- THUMBNAIL WIDGETS --- */
.thumbnail-card { background: var(--bg-white); padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(0,0,0,0.05); transition: transform 0.3s; }
.thumbnail-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.thumbnail-info h4 { color: var(--text-light); font-size: 0.9rem; font-weight: 500; margin-bottom: 5px; }
.thumbnail-info h2 { color: var(--text-dark); font-size: 1.8rem; font-weight: 700; }
.thumbnail-icon { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; background: rgba(0,0,0,0.03); }

/* --- FOOTER --- */
.main-footer { padding: 20px 30px; text-align: right; color: var(--text-light); font-size: 0.85rem; border-top: 1px solid rgba(0,0,0,0.05); margin-top: auto; }