/* ======================================================
   FUMITRUST STYLE - FINAL VERSION
   Author: Heri Setiyoko
   Bootstrap Compatible
====================================================== */

/* ------------------------------------------------------
   GLOBAL THEME
------------------------------------------------------ */
body {
    margin: 0;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: #333;
    background-color: #f4f8fc;
}

/* ------------------------------------------------------
   LOGIN PAGE
------------------------------------------------------ */
body.login-page {
    background: url("../img/bg.jpeg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 15px;
}

body.login-page::before {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(25, 118, 210, 0.55);
    z-index: 0;
}

.login-container {
    background: rgba(255,255,255,0.85);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 95%;
    max-width: 500px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-container img {
    height: 60px;
    margin: 0 5px;
}

.logo-ft {
    height: 55px;
}

h2 {
    font-weight: 600;
    color: #198754;
    margin-top: 10px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 13px;
    color: #444;
    margin-top: -5px;
    margin-bottom: 2px;
}

.subsubtitle {
    font-size: 12px;
    color: #555;
    margin-bottom: 20px;
}

h2, .subtitle, .subsubtitle {
    text-align: center;
    display: block;
    width: 100%;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.form-group input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40,167,69,0.2);
}

.remember-me {
    text-align: left;
    margin-bottom: 15px;
}

.remember-me label {
    margin-left: 5px;
    font-size: 14px;
}

.btn-login {
    width: 100%;
    padding: 10px;
    background-color: #198754;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: #157347;
}

footer {
    margin-top: 20px;
    font-size: 13px;
    color: #fff;
}

/* ------------------------------------------------------
   DASHBOARD
------------------------------------------------------ */
body.dashboard {
    display: flex;
    min-height: 100vh;
    background: #f4f8fc;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #1976d2, #512da8, #8e24aa);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 2px solid rgba(255,255,255,0.2);
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
}

.sidebar .brand {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar .brand i {
    font-size: 24px;
    margin-right: 5px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(255,255,255,0.25);
    transform: translateX(5px);
}

.sidebar nav a.logout {
    margin-top: auto;
    background: linear-gradient(90deg, #e53935, #d32f2f);
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sidebar nav a.logout:hover {
    background: linear-gradient(90deg, #c62828, #b71c1c);
}

/* MAIN CONTENT */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: linear-gradient(90deg, #ffffff, #f9f9f9);
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.topbar .user-info {
    margin-right: 20px;
    font-size: 14px;
    color: #333;
    text-align: right;
}

.topbar .btn-logout {
    background: #d32f2f;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.topbar .btn-logout:hover {
    background: #b71c1c;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { background: linear-gradient(135deg, #42a5f5, #1e88e5); }
.stat-card:nth-child(2) { background: linear-gradient(135deg, #66bb6a, #388e3c); }
.stat-card:nth-child(3) { background: linear-gradient(135deg, #ffa726, #f57c00); }

.stat-card:hover {
    transform: translateY(-5px);
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.card h5 {
    margin-bottom: 15px;
}

/* ANIMASI */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body.dashboard { flex-direction: column; }
    .sidebar { width: 100%; flex-direction: row; justify-content: space-between; min-height: auto; }
    .sidebar nav { flex-direction: row; gap: 8px; }
    .content { padding: 20px; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .login-container { padding: 20px 15px; }
    h2 { font-size: 18px; }
    .btn-login { font-size: 14px; padding: 12px; }
}
