:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --secondary: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
    --info: #2196f3;
    --dark: #333;
    --light: #f5f5f5;
    --gray: #e0e0e0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 2px;
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
}

.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.card h2 {
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--gray);
    padding-bottom: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 10px;
    background: var(--light);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.radio-group label:hover {
    background: var(--gray);
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn.logout {
    background: var(--danger);
}

.btn.logout:hover {
    background: #d32f2f;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.login-link {
    margin-top: 20px;
    text-align: center;
}

.login-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

.chart-container {
    height: 250px;
    position: relative;
}

/* Tambahkan di style.css */
.date-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.inline-form label {
    margin-bottom: 0;
    font-weight: 500;
}

.btn.small {
    padding: 4px 8px;
    font-size: 0.9rem;
}

.filled-dates {
    margin-top: 15px;
}

.filled-dates ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filled-dates li a {
    display: flexbox;
    word-break: break-all;
    padding: 5px 10px;
    background: #e3f2fd;
    border-radius: 4px;
    color: #1976d2;
    text-decoration: none;
}

.filled-dates li a:hover {
    background: #bbdefb;
}