:root {
    --deep-emerald: #0F3D3E;
    --emerald-light: #1a5f61;
    --emerald-lighter: #e8f3f0;
    --emerald-soft: #d4e8e5;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Navbar styling */
.navbar-custom {
    background-color: var(--deep-emerald) !important;
    box-shadow: 0 4px 12px rgba(15, 61, 62, 0.15);
    padding: 1rem 0;
}

.navbar-custom .navbar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Main container */
.main-content {
    padding: 3rem 0;
}

.page-title {
    color: var(--deep-emerald);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--deep-emerald);
    border-radius: 2px;
}

/* Form navigation */
.month-nav-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-label-custom {
    color: var(--deep-emerald);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control-custom,
.form-select-custom {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--deep-emerald);
    box-shadow: 0 0 0 0.25rem rgba(15, 61, 62, 0.25);
}

.btn-emerald {
    background-color: var(--deep-emerald);
    border: none;
    color: white;
    padding: 0.6rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-emerald:hover {
    background-color: var(--emerald-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 61, 62, 0.3);
}

/* Calendar table */
.calendar-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.calendar-table thead th {
    background-color: var(--deep-emerald);
    color: white;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    font-size: 1rem;
}

.calendar-table tbody td {
    background-color: var(--emerald-lighter);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    vertical-align: middle;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calendar-table tbody td:not(.empty):hover {
    transform: scale(1.02);
    border-color: var(--deep-emerald);
    box-shadow: 0 5px 15px rgba(15, 61, 62, 0.15);
    background-color: white;
}

.calendar-table tbody td.empty {
    background-color: transparent;
}

.date-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-emerald);
    margin-bottom: 0.25rem;
}

.date-info {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.2rem 0;
}

.date-info.hijri {
    color: #2c3e50;
    font-weight: 500;
}

.date-info.jawa {
    color: #e67e22;
    font-weight: 500;
}

/* Info sections */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    color: var(--deep-emerald);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-card h2 {
    color: var(--deep-emerald);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.info-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Footer styling */
.footer {
    background-color: var(--deep-emerald);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer .copyright a {
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.footer .copyright a:hover {
    text-decoration: underline;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-table thead th {
        font-size: 0.85rem;
        padding: 0.75rem 0.25rem;
    }

    .date-number {
        font-size: 1.1rem;
    }

    .date-info {
        font-size: 0.65rem;
    }

    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .month-nav-card .row>div {
        margin-bottom: 1rem;
    }

    .btn-emerald {
        width: 100%;
    }
}