:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #e7f1ff;
    --accent-color: #00d2ff;
    --bg-color: #f4f7fe;
    --text-color: #2b3674;
    --border-color: #e0e5f2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-left: 15px;
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
    margin-bottom: 2rem;
}

h1, h2, h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-success {
    background-color: #198754;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-success { background: #d1e7dd; color: #0f5132; }
.badge-danger { background: #f8d7da; color: #842029; }

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
    margin-top: 1rem;
    justify-content: center;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
}

.pagination a.active {
    background: var(--primary-color);
    color: white;
}

/* Grid Layout for Dashboard */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2, .form-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}
/* ==========================================
   MODAL POPUP STYLES
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.2s ease-in-out;
}

.modal-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
}

.modal-body table { 
    width: 100%; 
    margin-bottom: 1.5rem; 
}

.modal-body th { 
    width: 35%; 
    background: none; 
    color: #555; 
    text-align: left; 
}

/* ==========================================
   INPUT MANUAL STYLES
   ========================================== */
.manual-input-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 1.5rem auto 0 auto;
}

/* Animation */
@keyframes fadeIn {
    from { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}
/* ==========================================
   7. PUBLIC LANDING PAGE (INDEX) STYLE
   ========================================== */
.hero-card {
    text-align: center;
    padding: 3.5rem 2rem;
}

.hero-subtitle {
    margin: 1.2rem 0 2rem 0;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.activities-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 2rem 0;
}

.activity-tag {
    background: #e2e8f0;
    color: #334155;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-lg {
    font-size: 1.15rem;
    padding: 0.8rem 2rem;
    border-radius: 8px;
}
/* ==========================================
   8. LOGOUT BUTTON STYLE
   ========================================== */
.btn-logout {
    color: #ffda6a !important; /* Warna kuning soft agar kontras dengan navbar biru */
    font-weight: 600;
    margin-left: 1.5rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border-color: #ffffff;
    text-decoration: none;
}