:root {
    --primary-color: #2e7d32;
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --secondary-color: #f5f5f5;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-color: #f0f4f8;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #28a745;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Login Page --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center;
}

/* --- Dashboard Layout --- */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    padding: 20px 0;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a i {
    font-size: 20px;
    margin-right: 15px;
    color: var(--text-muted);
}

.nav-links a:hover, .nav-links li.active a {
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

.nav-links a:hover i, .nav-links li.active a i {
    color: var(--primary-color);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.topbar {
    background-color: var(--white);
    padding: 20px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-message h1 {
    font-size: 22px;
    font-weight: 600;
}

.content-wrapper {
    padding: 30px;
    flex: 1;
}

/* --- Components --- */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.02);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.card-body {
    padding: 25px;
}

.mb-4 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 20px; }
.text-center { text-align: center; }

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

textarea.form-control {
    resize: vertical;
}

.inline-form {
    display: flex;
    gap: 15px;
    align-items: center;
}
.inline-form .form-group {
    margin-bottom: 0;
    flex: 1;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
}

/* --- Alerts --- */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.data-table tr:hover {
    background-color: rgba(0,0,0,0.01);
}

/* --- Announcement List --- */
.announcement-list {
    display: flex;
    flex-direction: column;
}

.announcement-item {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.announcement-header h4 {
    font-size: 16px;
    color: var(--text-main);
}

.announcement-header .date {
    font-size: 12px;
    color: var(--text-muted);
}

.announcement-body {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.announcement-actions {
    text-align: right;
}
/* --- Public Page (Index) --- */
.public-nav {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.login-btn {
    text-decoration: none;
}
.public-main {
    min-height: calc(100vh - 70px);
}
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}
.hero-section h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}
.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}
.filter-select {
    max-width: 300px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.chamber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}
.chamber-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.chamber-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.chamber-card-header {
    padding: 20px;
    background-color: rgba(46, 125, 50, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.chamber-card-header h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.3;
}
.badge {
    background-color: var(--primary-light);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.chamber-card-body {
    padding: 20px;
    flex: 1;
}
.chamber-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.chamber-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted);
}
.chamber-info-list li:last-child {
    margin-bottom: 0;
}
.chamber-info-list li i {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 2px;
}
.chamber-card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}
.mt-3 {
    margin-top: 15px;
}
/* --- Chamber Detail Page --- */
.chamber-detail-main {
    min-height: calc(100vh - 70px);
}
.chamber-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 50px 20px;
}
.chamber-hero h1 {
    font-size: 28px;
    margin-bottom: 15px;
}
.badge-lg {
    font-size: 14px;
    padding: 6px 12px;
}
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
.chamber-info-list.large li {
    font-size: 15px;
    margin-bottom: 15px;
}
.chamber-info-list.large li i {
    font-size: 22px;
}
.sticky-form {
    position: sticky;
    top: 90px;
}
.text-muted {
    color: var(--text-muted);
}
.mt-4 { margin-top: 30px; }
/* --- Social Links --- */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}
.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}
/* --- Map and Contact Enhancements --- */
.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.contact-link:hover {
    text-decoration: underline;
}
.whatsapp-icon {
    background-color: #25D366;
    color: white;
}
.whatsapp-icon:hover {
    background-color: #1ebe57;
}
.map-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.map-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
}
