:root {
    --navy-blue: #0a192f;
    --red: #e4002b;
    --bg-light: #f0f2f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-grey: #6c757d;
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); }

/* --- HALAMAN LOGIN --- */
.login-body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: var(--navy-blue); background-image: radial-gradient(circle at top right, rgba(228, 0, 43, 0.15), transparent); }
.login-container { width: 100%; max-width: 400px; padding: 20px; }
.login-card { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); text-align: center; }
.login-logo { height: 50px; margin-bottom: 20px; }
.login-card h2 { color: var(--navy-blue); margin-bottom: 5px; }
.login-card h2 span { color: var(--red); }
.login-card p { color: var(--text-grey); font-size: 0.9rem; margin-bottom: 30px; }
.input-group { text-align: left; margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--navy-blue); }
.input-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; outline: none; transition: var(--transition); }
.input-group input:focus { border-color: var(--red); }
.btn-login { width: 100%; background: var(--red); color: var(--white); border: none; padding: 12px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: var(--transition); }
.btn-login:hover { background: #c00024; }
.login-footer { margin-top: 20px; font-size: 0.8rem; color: var(--text-grey); }

/* --- ARSITEKTUR DASHBOARD --- */
/* Sidebar */
.sidebar { width: var(--sidebar-width); background: var(--white); height: 100vh; position: fixed; top: 0; left: 0; box-shadow: 2px 0 10px rgba(0,0,0,0.05); z-index: 100; }
.sidebar-header { height: var(--topbar-height); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #eee; }
.sidebar-logo { height: 40px; }
.sidebar-menu { list-style: none; padding: 20px 0; }
.sidebar-menu li { margin-bottom: 5px; }
.sidebar-menu a { display: flex; align-items: center; gap: 15px; padding: 12px 25px; color: var(--text-grey); text-decoration: none; font-weight: 500; transition: var(--transition); }
.sidebar-menu a i { width: 20px; text-align: center; font-size: 1.1rem; }
.sidebar-menu a:hover, .sidebar-menu li.active a { color: var(--red); background: rgba(228, 0, 43, 0.05); border-right: 4px solid var(--red); }

/* Main Content Area */
.main-content { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }

/* Topbar */
.topbar { height: var(--topbar-height); background: var(--white); display: flex; justify-content: space-between; align-items: center; padding: 0 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.topbar-left h3 { color: var(--navy-blue); }
.topbar-left span { color: var(--red); }
.topbar-right { display: flex; align-items: center; gap: 25px; }
.notification { position: relative; font-size: 1.2rem; color: var(--text-grey); cursor: pointer; }
.badge { position: absolute; top: -5px; right: -5px; background: var(--red); color: var(--white); font-size: 0.6rem; font-weight: bold; width: 16px; height: 16px; display: flex; justify-content: center; align-items: center; border-radius: 50%; }
.user-profile { display: flex; align-items: center; gap: 10px; border-left: 1px solid #ddd; padding-left: 20px; }
.avatar { width: 35px; height: 35px; background: var(--navy-blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.username { font-size: 0.9rem; font-weight: 600; }
.btn-logout { background: none; border: none; font-size: 1.2rem; color: var(--text-grey); cursor: pointer; transition: var(--transition); }
.btn-logout:hover { color: var(--red); }

/* Dashboard Area */
.dashboard-area { padding: 30px; flex: 1; }
.welcome-box { margin-bottom: 30px; }
.welcome-box h2 { color: var(--navy-blue); margin-bottom: 5px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.03); display: flex; align-items: center; gap: 20px; }
.stat-icon { width: 60px; height: 60px; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; }
.stat-info h4 { font-size: 1.8rem; color: var(--navy-blue); }
.stat-info p { font-size: 0.85rem; color: var(--text-grey); font-weight: 600; }

/* Document Grid */
.section-title { font-size: 1.2rem; margin-bottom: 20px; color: var(--navy-blue); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.doc-card { background: var(--white); padding: 25px 20px; border-radius: 10px; text-align: center; text-decoration: none; color: var(--text-dark); box-shadow: 0 4px 6px rgba(0,0,0,0.03); border: 1px solid #eee; transition: var(--transition); }
.doc-card:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 10px 20px rgba(228,0,43,0.1); }
.doc-icon { font-size: 2.5rem; color: var(--navy-blue); margin-bottom: 15px; transition: var(--transition); }
.doc-card:hover .doc-icon { color: var(--red); }
.doc-card h4 { margin-bottom: 8px; font-size: 1.1rem; }
.doc-card p { font-size: 0.8rem; color: var(--text-grey); }