:root {
    --primary: #125d31;
    --primary-dark: #0d4424;
    --primary-light: #1a7a42;
    --accent: #2dd4bf;
    --bg-light: #f4f7f5;
    --card-shadow: 0 4px 24px rgba(18, 93, 49, 0.08);
    --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 0.95rem;
}

.footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

/* ===== Navbar ===== */
.main-navbar {
    background: linear-gradient(135deg, #125d31 0%, #1a7a42 100%) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.main-navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: background 0.2s;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    background: rgba(255,255,255,0.15);
}

/* ===== Hero Header ===== */
.hero-header {
    background: linear-gradient(135deg, #125d31 0%, #1a7a42 50%, #0d4424 100%);
    color: white;
    padding: 2.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 55%;
    height: 180%;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    transform: rotate(20deg);
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 0.92rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Date Badge */
.date-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.97);
    color: var(--primary);
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.2s;
}

.date-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.16);
}

.date-badge input[type="date"] {
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-family: var(--font);
    outline: none;
    cursor: pointer;
}

/* ===== Schedule Cards ===== */
.schedule-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: none;
    margin-bottom: 1.2rem;
    transition: all 0.25s ease;
    overflow: hidden;
}

.schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(18, 93, 49, 0.12);
}

.schedule-card .card-body {
    padding: 1.4rem 1.5rem;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    background: #e6f5eb;
    color: var(--primary);
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f1f1;
    color: #555;
    padding: 0.35rem 0.9rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
}

.schedule-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.45;
    margin: 0.7rem 0 0.45rem;
}

.meeting-info {
    font-size: 0.85rem;
    color: #6b7280;
}

.btn-presensi {
    background: linear-gradient(135deg, #125d31, #1a7a42);
    border: none;
    color: white !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.btn-presensi:hover {
    background: linear-gradient(135deg, #0d4424, #125d31);
    transform: translateY(-1px);
    color: white !important;
}

.btn-daftar {
    background: #fff;
    border: 1.5px solid #d1d5db;
    color: #4b5563;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    transition: all 0.2s;
}

.btn-daftar:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0fdf4;
}

/* ===== Login Page (mirip real site) ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    font-family: var(--font);
}

.login-left {
    flex: 1;
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23f0f7f2" width="100" height="100"/></svg>');
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-left .brand-box {
    text-align: center;
    max-width: 380px;
}

.login-left .brand-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #125d31, #1a7a42);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 12px 30px rgba(18,93,49,0.25);
}

.login-left h2 {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
}

.login-right {
    flex: 1;
    background: linear-gradient(135deg, rgba(18,93,49,0.92), rgba(13,68,36,0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: #fff;
}

.login-card-inner {
    width: 100%;
    max-width: 400px;
}

.login-card-inner h1 {
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.login-card-inner .subtitle {
    color: #d1e7d9;
    font-size: 0.92rem;
    margin-bottom: 2rem;
}

.form-label-custom {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-control-custom {
    background: rgba(255,255,255,0.92) !important;
    border: none !important;
    border-radius: 8px !important;
    height: 48px;
    padding: 10px 16px;
    color: #333 !important;
    font-size: 0.95rem;
    font-family: var(--font);
}

.form-control-custom:focus {
    background: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.btn-login-green {
    background: #fff;
    color: var(--primary);
    border: none;
    height: 48px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-login-green:hover {
    background: #e8f5e9;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.demo-accounts {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    font-size: 0.82rem;
    color: #e0e0e0;
}

/* ===== Table ===== */
.table-modern {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table-modern thead {
    background: linear-gradient(135deg, #125d31, #1a7a42);
    color: white;
}

.table-modern th {
    font-weight: 600;
    border: none;
    padding: 1rem;
    font-size: 0.88rem;
}

.table-modern td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

/* DataTables override */
table.dataTable {
    margin-top: 0 !important;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.4rem 0.8rem;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.3rem 0.5rem;
}

/* ===== Empty state ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.empty-state i {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    opacity: 0.45;
}

/* ===== Modal ===== */
.modal-header {
    background: linear-gradient(135deg, #125d31, #1a7a42);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-content {
    border-radius: 14px;
    overflow: hidden;
    border: none;
}

/* ===== Page header ===== */
.page-header {
    margin-bottom: 1.5rem;
}

.page-header h4 {
    font-weight: 700;
    color: #1a1a2e;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .login-page {
        flex-direction: column;
    }
    .login-left {
        min-height: 220px;
        padding: 2rem 1rem;
    }
    .login-left .brand-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.35rem; }
    .schedule-title { font-size: 0.98rem; }
    .btn-daftar, .btn-presensi {
        width: 100%;
        margin-bottom: 0.4rem;
    }
}
