/* Jire Maternity Home Main CSS */
:root {
    --kelly-green: #4CAF50;
    --emerald-green: #1a4731;
    --light-gray: #f8f9fa;
    --white: #ffffff;
}

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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-gray);
    overflow-x: hidden;
}

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

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 70px;
    }
}

/* Cards */
.dashboard-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(26, 71, 49, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--emerald-green);
}

/* Tables */
.table-custom {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-custom thead {
    background: var(--emerald-green);
    color: var(--white);
}

.table-custom tbody tr:hover {
    background: rgba(26, 71, 49, 0.05);
}
/* Gallery Styles */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Buttons */
.btn-emerald {
    background: var(--emerald-green);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-emerald:hover {
    background: #0d2e1f;
    color: var(--white);
    transform: translateY(-2px);
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--emerald-green);
    box-shadow: 0 0 0 0.2rem rgba(26, 71, 49, 0.25);
}

/* Badges */
.badge-active {
    background: #d4edda;
    color: #155724;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-completed {
    background: #cce5ff;
    color: #004085;
}

/* MOH 333 Form Styling */
.moh-header {
    background: var(--emerald-green);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.moh-section {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.moh-section-title {
    color: var(--emerald-green);
    border-left: 4px solid var(--emerald-green);
    padding-left: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Print Styles */
@media print {
    .sidebar, .navbar, .btn, .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    .moh-header {
        background: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 576px) {
    .dashboard-card {
        margin-bottom: 15px;
    }
    .table-responsive {
        font-size: 14px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d2e1f;
}