* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --primary: #0A5C8A;
    --primary-dark: #063B59;
    --secondary: #63B135;
    --text-dark: #2B3A42;
    --text-light: #5A6B75;
    --bg-light: #F4F7F9;
    --white: #FFFFFF;
    --border: #DDE5E9;
    --shadow: 0 4px 15px rgba(10, 92, 138, 0.08);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo-text h1 {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}
.logo-text span {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: capitalize;
}
nav {
    display: flex;
    gap: 5px;
}
.nav-tab {
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.3s;
    border: none;
    background: transparent;
    font-size: 14px;
}
.nav-tab:hover {
    color: var(--primary);
    background: rgba(10, 92, 138, 0.05);
}
.nav-tab.active {
    background: var(--primary);
    color: var(--white);
}

.main-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.page-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}
.page-section.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}
.hero-banner h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 800;
}
.hero-banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 25px auto;
}
.tagline {
    font-style: italic;
    color: var(--secondary);
    font-size: 22px;
    font-weight: 700;
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 30px;
    position: relative;
    font-weight: 700;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
@media(max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card.alt-border { border-left-color: var(--secondary); }
.card h3 { color: var(--primary); margin-bottom: 15px; font-size: 20px; }
.card ul { list-style-position: inside; color: var(--text-light); }
.card ul li { margin-bottom: 8px; }

.stats-bar {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-around;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    border-bottom: 4px solid var(--secondary);
}
@media(max-width: 768px) {
    .stats-bar { flex-direction: column; gap: 25px; }
}
.stat-item h3 { font-size: 36px; color: var(--primary); font-weight: 800; }
.stat-item p { color: var(--text-light); font-size: 15px; font-weight: 600; }

.process-flow { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.process-step { display: flex; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.step-num { background: var(--primary); color: var(--white); font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; width: 80px; flex-shrink: 0; }
.process-step:nth-child(even) .step-num { background: var(--secondary); }
.step-content { padding: 20px 25px; }
.step-content h3 { color: var(--primary); margin-bottom: 5px; }

.table-wrapper { overflow-x: auto; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 40px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 18px 22px; border-bottom: 1px solid var(--border); }
th { background-color: var(--primary); color: var(--white); font-size: 16px; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background-color: rgba(10, 92, 138, 0.02); }

.rich-text-block { background: var(--white); padding: 35px; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 30px; }
.rich-text-block p { margin-bottom: 15px; color: var(--text-light); font-size: 16px; }
.check-list, .bullet-list { margin: 20px 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-dark); }
.check-list li::before { content: '✔'; position: absolute; left: 0; color: var(--secondary); font-weight: bold; }
.bullet-list li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.bullet-list li::before { content: '•'; position: absolute; left: 5px; color: var(--primary); font-size: 20px; top: -2px; }

.faq-item { background: var(--white); border-radius: 8px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); }
.faq-question { padding: 20px; font-weight: 700; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); user-select: none; }
.faq-question::after { content: '+'; font-size: 22px; color: var(--secondary); transition: transform 0.3s; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease-out; color: var(--text-light); background: #FAFCFD; }
.faq-item.open .faq-answer { padding: 20px; max-height: 1000px; border-top: 1px solid var(--border); }

.cta-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: var(--white); border-radius: 16px; padding: 45px; text-align: center; margin-top: 40px; box-shadow: var(--shadow); }
.cta-section h2 { font-size: 28px; margin-bottom: 15px; }
.cta-section p { margin-bottom: 25px; opacity: 0.9; max-width: 700px; margin-left: auto; margin-right: auto; }
.btn { display: inline-block; background: var(--secondary); color: var(--white); padding: 14px 32px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background 0.3s, transform 0.2s; border: none; cursor: pointer; font-size: 16px; margin: 10px; }
.btn:hover { background: #529628; transform: scale(1.02); }
.btn-alt { background: var(--white); color: var(--primary); }
.btn-alt:hover { background: var(--bg-light); }
.notice-tag { background: rgba(255,255,255,0.15); padding: 6px 15px; border-radius: 20px; font-size: 14px; display: inline-block; margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.25); }

footer { background: var(--primary-dark); color: rgba(255, 255, 255, 0.7); padding: 25px 20px; text-align: center; margin-top: 60px; font-size: 14px; border-top: 4px solid var(--secondary); }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); overflow-y: auto; }
.modal-content { background: var(--white); margin: 30px auto; padding: 30px; border-radius: 16px; max-width: 600px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); position: relative; }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; font-weight: bold; color: var(--text-light); cursor: pointer; }
.close:hover { color: var(--primary); }
.modal h2 { color: var(--primary); margin-bottom: 10px; }
.modal .note { background: #FFF8E1; padding: 10px 15px; border-radius: 8px; font-size: 13px; color: #856404; margin-bottom: 20px; border-left: 4px solid #FFC107; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: var(--text-dark); font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 15px; border: 2px solid var(--border); border-radius: 8px; font-size: 15px; transition: border 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group .checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--text-light); }
.form-group .checkbox-label input { width: auto; margin-top: 3px; }
.submit-btn { width: 100%; padding: 14px; background: var(--primary); color: var(--white); border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.3s; }
.submit-btn:hover { background: var(--primary-dark); }
.form-footer { text-align: center; margin-top: 15px; font-size: 14px; color: var(--text-light); }
.form-footer a { color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }
.alert { padding: 12px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #4CAF50; }
.alert-error { background: #FFEBEE; color: #C62828; border-left: 4px solid #F44336; }

/* Auth pages */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-box { background: var(--white); padding: 40px; border-radius: 16px; box-shadow: var(--shadow); max-width: 450px; width: 100%; }
.auth-box h2 { color: var(--primary); text-align: center; margin-bottom: 25px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-light); }
.auth-links a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* Dashboard */
.dash-header { background: var(--primary); color: var(--white); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; }
.dash-header h2 { font-size: 20px; }
.dash-header a { color: var(--white); text-decoration: none; font-weight: 600; }
.dash-body { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.dash-welcome { background: var(--white); border-radius: 12px; padding: 30px; box-shadow: var(--shadow); margin-bottom: 30px; }
.dash-card { background: var(--white); border-radius: 12px; padding: 25px; box-shadow: var(--shadow); margin-bottom: 20px; border-left: 5px solid var(--primary); }
.dash-card h3 { color: var(--primary); margin-bottom: 15px; }
.info-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; width: 180px; color: var(--text-dark); }
.info-value { color: var(--text-light); }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--primary); color: var(--white); padding: 15px 20px; text-align: left; }
.admin-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); color: var(--text-light); }
.admin-table tr:hover td { background: rgba(10, 92, 138, 0.02); }
.admin-table .badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-success { background: #E8F5E9; color: #2E7D32; }
.search-box { margin-bottom: 20px; }
.search-box input { padding: 10px 15px; border: 2px solid var(--border); border-radius: 8px; width: 300px; font-size: 14px; }
.search-box input:focus { outline: none; border-color: var(--primary); }

@media(max-width: 768px) {
    .header-container { flex-direction: column; gap: 10px; }
    nav { flex-wrap: wrap; justify-content: center; }
    .hero-banner { padding: 30px 20px; }
    .hero-banner h2 { font-size: 24px; }
}
