:root {
    --primary-green: #0d4a3e;
    --secondary-gold: #c5a040;
    --bg-light: #f9fbf9;
    --text-dark: #1a2b25;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4,
.navbar-brand {
    font-family: 'Lora', serif;
}

/* Background Pattern */
.pattern-bg {
    background-image: radial-gradient(#d1d1d1 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-green) !important;
    padding: 15px 0;
}

.navbar-brand {
    font-size: 1.1rem;
    line-height: 1.2;
}

.navbar-brand img {
    width: 40px;
    margin-right: 12px;
}

.navbar-brand span {
    display: block;
    font-size: 0.75rem;
    color: var(--secondary-gold);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 10px;
}

.nav-link.active,
.nav-link:hover {
    color: #fff !important;
}

.btn-register-nav {
    background-color: #1b5e20 !important;
    border: none;
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-green);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.bismillah {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.hero-subtitle {
    font-size: 3rem;
    color: var(--secondary-gold);
    margin-bottom: 25px;
}

.hero-text {
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
    opacity: 0.85;
}

/* Buttons */
.btn-gold,
.btn-download {
    background-color: var(--secondary-gold);
    color: var(--primary-green);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.btn-gold:hover {
    background-color: #dcb651;
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    background: transparent;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-submit {
    background-color: var(--primary-green) !important;
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
}

/* Sections */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 3px;
    background-color: var(--secondary-gold);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1.5px solid #f1f4f1;
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-header i {
    margin-right: 12px;
    font-size: 1.2rem;
    color: var(--primary-green);
}

/* Cards */
.card-custom,
.registration-card {
    background: #fff;
    border: none;
    border-radius: 12px;
}

.card-custom {
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    height: 100%;
    transition: all 0.3s;
}

.card-custom:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.registration-card {
    padding: 50px;
    margin-top: -30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #f1f4f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-green);
    font-size: 1.5rem;
}

/* Forms */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.form-control,
.form-select {
    padding: 10px 15px;
    border-color: #e2e8e2;
    border-radius: 6px;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(13, 74, 62, 0.08);
}

/* Upload */
.upload-placeholder {
    border: 2px dashed #e2e8e2;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafbfa;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.upload-placeholder.is-invalid {
    border: 2px dashed #dc3545;
    background: rgba(220,53,69,.05);
}

.upload-placeholder:hover {
    border-color: var(--primary-green);
    background: #f1f4f1;
}

.upload-placeholder .upload-text {
    padding: 40px 20px
}

.upload-placeholder .upload-text i {
    font-size: 2rem;
    color: #999;
    margin-bottom: 15px;
}

.upload-placeholder #photoPreview, .upload-placeholder #aadharPreview{
    width: 100%;
    position: absolute;
    object-fit: cover;
}

/* Accordion */
.accordion-item {
    border: 1px solid #f1f4f1;
    margin-bottom: 20px;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    padding: 20px 25px;
    font-weight: 600;
    color: var(--text-dark);
    background-color: #fff;
    display: flex;
    align-items: center;
}

.accordion-button:not(.collapsed) {
    background-color: #fff;
    color: var(--primary-green);
    box-shadow: none;
}

.accordion-button i {
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.accordion-button::after {
    background-size: 1rem;
}

/* Syllabus */
.syllabus-container {
    margin-top: 40px;
}

.syllabus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.syllabus-list li {
    padding: 12px 0;
    color: #555;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
}

.syllabus-list li::before {
    content: '•';
    color: var(--secondary-gold);
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
    margin-left: 0.5em;
}

/* Date Card */
.date-card {
    background-color: #f1f4f1;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.date-card h5 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 10px;
}

.date-card h3, .date-card h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #072e26;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer a:hover {
    color: var(--secondary-gold);
}

.payment-card {
    background: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

.payment-header {
    background: linear-gradient(135deg, #0d4a3e 0%, #1a5c4e 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.fee-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-gold);
    font-family: 'Lora', serif;
}

.candidate-summary {
    background-color: #f8faf8;
    border: 1px solid #eef2ee;
    padding: 25px;
    border-radius: 12px;
}

.btn-pay {
    background-color: var(--primary-green);
    color: white;
    padding: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    width: 100%;
    border-radius: 8px;
    transition: all 0.3s;
}
.btn-pay:hover {
    background-color: #0c3e27;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 74, 62, 0.2);
    color: white;
}

/*=== Admin Styles === */
.admin-sidebar {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    height: calc(100vh - 120px);
    position: sticky;
    top: 100px;
}

.nav-admin .nav-link {
    color: #555 !important;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.nav-admin .nav-link i {
    margin-right: 12px;
    font-size: 1.1rem;
    color: #888;
}
.nav-admin .nav-link:hover {
    background-color: #f1f4f1;
    color: var(--primary-green) !important;
}
.nav-admin .nav-link.active {
    background-color: var(--primary-green) !important;
    color: white !important;
}
.nav-admin .nav-link.active i {
    color: #fff;
}

.stat-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-bottom: 4px solid transparent;
}
.stat-card.green { border-bottom-color: var(--primary-green); }
.stat-card.gold { border-bottom-color: var(--secondary-gold); }
.stat-card.blue { border-bottom-color: #0d6efd; }

.table-custom {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.table-custom thead {
    background-color: #f8faf8;
}
.table-custom th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    padding: 15px 20px;
    font-weight: 700;
    border: none;
}
.table-custom td {
    padding: 15px 20px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-top: 1px solid #f1f4f1;
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 5px;
}

.badge-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}
.bg-pending { background-color: #fff8e1; color: #f57f17; }
.bg-verified { background-color: #e8f5e9; color: #1b5e20; }

.search-bar {
    background-color: #fff;
    border: 1px solid #e2e8e2;
    border-radius: 8px;
    padding: 10px 15px;
    width: 100%;
    max-width: 400px;
}

/*=== Login Page ===*/
.login-card {
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    padding: 40px;
}

.brand-name {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 1.5rem;
}

.login-icon {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
}

.form-control {
    padding: 12px 15px;
    border-color: #e2e8e2;
    background-color: #fafbfa;
    border-radius: 6px;
}
.form-control:focus {
    background-color: #fff;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(13, 74, 62, 0.08);
}

.btn-login {
    background-color: var(--primary-green) !important;
    border: none;
    color: #fff !important;
    font-weight: 600;
    padding: 12px;
    border-radius: 6px;
}

.footer-links a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-home {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.back-home:hover {
    color: var(--primary-green);
}
