/* assets/css/admin.css */

/* --- FONT UTAMA --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    color: #333;
}

/* --- ATURAN BARU UNTUK HALAMAN LOGIN (SATU KOLOM) --- */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fc !important;
}

.login-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background-color: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: none;
}

.login-logo {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.login-logo-img {
    max-width: 120px;
    height: auto;
}

.login-subtitle {
    color: #858796;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.login-box .form-group {
    margin-bottom: 1.5rem;
}

.login-box .form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #6e707e;
    margin-bottom: 8px;
    display: block;
}

.login-box .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d3e2;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.login-box .form-control:focus {
    outline: none;
    border-color: #1da6a9;
    box-shadow: 0 0 0 2px rgba(78, 115, 223, 0.2);
}

.login-box .g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-box .btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: #1da6a9;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.login-box .btn-primary:hover {
    background-color: #1da6a9;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #b7b9cc;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* --- AKHIR ATURAN HALAMAN LOGIN --- */


/* --- ATURAN UNTUK DASBOR (TETAP SAMA) --- */
.dashboard-layout {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: #ffffff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 25px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar-logo img {
    max-width: 130px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav a:hover {
    background-color: #f4f7f6;
}

.sidebar-nav a.active {
    background-color: #1da6a9;
    color: #fff;
}

.sidebar-nav a.active svg {
    stroke: #fff;
}

.main-content {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 24px;
}

.btn-logout {
    background-color: #E63946;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-logout:hover {
    background-color: #c12a36;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #888;
    font-weight: 500;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: 700;
}

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}
