/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(-45deg, #1e3c72, #2a5298, #1b6ca8, #00b4db);
    background-size: 400% 400%;
    animation: gradientMove 18s ease infinite;
    color: #fff;
    transition: background 0.4s, color 0.4s;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mode terang */
body.light-mode {
    background: #f4f4f4;
    color: #222;
}

body.light-mode .sidebar {
    background: #ffffff;
    color: #222;
}

body.light-mode .sidebar ul li a {
    color: #222;
}

body.light-mode .sidebar ul li.active a,
body.light-mode .sidebar ul li a:hover {
    background: rgba(0,0,0,0.05);
    border-left: 4px solid #1e88e5;
}

body.light-mode .card {
    background: white;
    color: black;
}

/* Header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    height: 65px;
    overflow: hidden;
}

body.light-mode .header-container {
    background: white;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.logo2 {
    height: 40px !important;   /* ukuran logo */
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo {
        height: 28px;
    }
}

.mode-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: inherit;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    padding-top: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 5px 0;
}

.sidebar ul li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar ul li.active a,
.sidebar ul li a:hover {
    background: rgba(255,255,255,0.2);
    border-left: 4px solid #00bfa6;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: rgba(255,255,255,0.9);
    color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 10px;
}

.log{
    border-radius: 10px;
    padding: 3px;
    text-decoration: none;
    color: rgb(0, 0, 0);
    background-color: rgb(163, 163, 163);
}

.log:hover{
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}


.user-info {
    color: black;
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 8px;
}

/* ========== FOOTER COPYRIGHT ========== */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
}

/* Footer untuk mode terang */
body.light-mode .footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Responsif */
@media (max-width: 768px) {
    .footer {
        font-size: 0.8rem;
        padding: 15px;
    }
}

/* ========== FOOTER COPYRIGHT ========== */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
}

/* Footer untuk mode terang */
body.light-mode .footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Responsif */
@media (max-width: 768px) {
    .footer {
        font-size: 0.8rem;
        padding: 15px;
    }
}

img {
    max-height: 40px !important;
    border: 5px solid yellow !important;
}

