/* VARIABEL WARNA */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent1: #FFD166;
    --accent2: #7A9E9F;
    --accent3: #6A0572;
    --light: #F7F9FC;
    --dark: #2D3047;
    --success: #06D6A0;
    --warning: #FFD166;
    --danger: #EF476F;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* LOGIN STYLES */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--accent3));
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.login-box h2 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    border-bottom: none;
}

.login-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f0f8ff;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: left;
}

.login-info p {
    margin-bottom: 0.5rem;
}

/* HEADER STYLES */
header {
    background: linear-gradient(135deg, var(--primary), var(--accent3));
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    font-size: 2rem;
}

.role-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 1rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* MAIN CONTENT STYLES */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent1);
}

/* DASHBOARD STYLES */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-card:nth-child(1) { border-top: 5px solid var(--primary); }
.stat-card:nth-child(2) { border-top: 5px solid var(--secondary); }
.stat-card:nth-child(3) { border-top: 5px solid var(--accent1); }
.stat-card:nth-child(4) { border-top: 5px solid var(--accent2); }

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-card:nth-child(1) i { color: var(--primary); }
.stat-card:nth-child(2) i { color: var(--secondary); }
.stat-card:nth-child(3) i { color: var(--accent1); }
.stat-card:nth-child(4) i { color: var(--accent2); }

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* TABLE STYLES */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--secondary);
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* ACTIVITY STYLES */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.activity-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.activity-content {
    padding: 1.5rem;
}

.activity-date {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* FORM STYLES */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff5252;
}

/* FOOTER STYLES */
footer {
    background: linear-gradient(135deg, var(--accent3), var(--dark));
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        flex-direction: column;
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    nav a {
        display: block;
        text-align: center;
    }
    
    .logout-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}