/* ==============================================================
   MARICK HEALTH CENTER - PUBLIC THEME (style.css)
   ============================================================== */

/* GLOBAL STYLES */
body { 
    margin: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    color: #334155; 
}
.bg-landing { background-color: #f8fafc; overflow-x: hidden; }
.bg-auth { background-color: #d8dee3; display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }

/* SVG ICON HELPER (includes/icons.php) - matches assets/css/admin_theme.css */
.mh-icon { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.15em; stroke: currentColor; }

/* ==========================================
   NAVIGATION BAR (Landing Page)
   ========================================== */
.navbar { 
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 50px; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; top: 0; z-index: 100;
}
.nav-brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.nav-brand img { width: 50px; }
.nav-brand h1 { margin: 0; font-size: 1.3rem; color: #1e293b; font-family: Georgia, serif; }

.dropdown { position: relative; display: inline-block; }
.dropbtn {
    background: transparent; border: 2px solid #4ca1af; border-radius: 25px; 
    color: #4ca1af; font-weight: bold; font-size: 0.95rem; cursor: pointer; 
    padding: 10px 22px; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; font-family: inherit;
}
.dropdown:hover .dropbtn, .dropbtn:hover { background: #4ca1af; color: white; }
.dropdown-content {
    display: none; position: absolute; right: 0; top: 110%; background-color: white; 
    min-width: 180px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 8px; 
    z-index: 101; overflow: hidden; border: 1px solid #e2e8f0;
}
.dropdown-content a { color: #475569; padding: 12px 20px; text-decoration: none; display: block; font-size: 0.9rem; font-weight: 500; transition: background 0.2s; }
.dropdown-content a:hover { background-color: #f1f5f9; color: #4ca1af; }
.dropdown:hover .dropdown-content { display: block; }

/* ==========================================
   HERO & INFO SECTIONS (Landing Page)
   ========================================== */
.hero { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    text-align: center; padding: 140px 20px; 
    background-image: linear-gradient(rgba(224, 242, 254, .5), rgba(248, 250, 252, .5)), url('../images/barangay_bg.png');
    background-size: cover; background-position: center; background-attachment: fixed; border-bottom: 1px solid #cbd5e1; 
}
.hero h2 { font-size: 3.5rem; color: #0f172a; margin-bottom: 20px; font-family: Georgia, serif; line-height: 1.1; max-width: 800px; }
.hero p { font-size: 1.2rem; color: #475569; max-width: 600px; margin-bottom: 40px; line-height: 1.6; }

.info-section { display: flex; justify-content: center; gap: 30px; padding: 80px 50px; background: white; flex-wrap: wrap; }
.info-card { background: #f8fafc; padding: 30px; border-radius: 12px; border: 1px solid #e2e8f0; text-align: center; flex: 1; min-width: 280px; max-width: 350px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: transform 0.2s; }
.info-card:hover { transform: translateY(-5px); }
.info-icon { display: flex; justify-content: center; margin-bottom: 15px; color: #4ca1af; }
.info-icon .mh-icon { width: 40px; height: 40px; }
.info-card h3 { color: #1e293b; margin-bottom: 15px; font-size: 1.2rem; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; display: inline-block;}
.info-card p { color: #64748b; line-height: 1.6; margin: 0; font-size: 0.95rem; text-align: left;}

.footer { text-align: center; padding: 30px; background: #1e293b; color: #94a3b8; font-size: 0.9rem; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn { 
    padding: 16px 40px; border-radius: 30px; font-size: 1.1rem; font-weight: bold; 
    text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { background: #4ca1af; color: white; box-shadow: 0 4px 15px rgba(76, 161, 175, 0.3); }
.btn-primary:hover { background: #3b828e; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(76, 161, 175, 0.4); }

.btn-submit { background: #4ca1af; color: white; border: none; padding: 15px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; font-size: 1.1rem; transition: 0.2s; margin-top: 10px;}
.btn-submit:hover { background: #3b828e; }

/* ==========================================
   AUTH BOXES (Login & Register)
   ========================================== */
.auth-container { background: #ffffff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 100%; border-top: 6px solid #4ca1af; }
.reg-box { max-width: 600px; }
.login-box { max-width: 450px; }

.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header img { width: 80px; margin-bottom: 10px; }
.auth-header h1 { color: #1e293b; font-size: 1.6rem; font-family: Georgia, serif; margin-bottom: 5px; }
.auth-header p { color: #64748b; font-size: 0.95rem; margin:0;}

.auth-link { display: block; text-align: center; margin-top: 25px; color: #64748b; text-decoration: none; font-size: 0.9rem; }
.auth-link span { color: #4ca1af; font-weight: bold; }
.auth-link:hover span { text-decoration: underline; }

.alert { padding: 12px 15px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; font-weight: bold; text-align: center; }
.alert-success { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ==========================================
   FORMS & INPUTS
   ========================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; } 
.full-width { grid-column: span 2; }
.form-group { text-align: left; margin-bottom: 20px; }
.form-grid .form-group { margin-bottom: 0; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 0.9rem; color: #475569; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 6px; background-color: #f8fafc; font-family: inherit; font-size: 1rem; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #8ab6d6; background-color: #fff; box-shadow: 0 0 0 3px rgba(76, 161, 175, 0.1); }

/* ==========================================
   MODALS (Popups)
   ========================================== */
.modal-overlay { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background-color: white; padding: 40px; border-radius: 16px; width: 90%; max-width: 450px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.2); transform: scale(0.9); transition: transform 0.3s ease; border-top: 6px solid #4ca1af; text-align: center; }
.modal-overlay.active .modal-content { transform: scale(1); }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 28px; color: #94a3b8; cursor: pointer; background: none; border: none; font-weight: bold; }
.close-modal:hover { color: #ef4444; }
.modal-header img { width: 70px; margin-bottom: 15px; }
.modal-header h2 { margin: 0 0 10px 0; color: #1e293b; font-family: Georgia, serif; font-size: 1.5rem;}
.modal-header p { margin: 0 0 30px 0; color: #64748b; font-size: 0.95rem;}
.btn-modal-login { width: 100%; padding: 14px; background: #4ca1af; color: white; border: none; border-radius: 8px; font-weight: bold; font-size: 1.1rem; cursor: pointer; margin-bottom: 20px; transition: background 0.2s; }
.btn-modal-login:hover { background: #3b828e; }
.reg-prompt { border-top: 1px dashed #cbd5e1; padding-top: 20px; margin-top: 20px; color: #64748b; font-size: 0.9rem; }
.btn-modal-register { display: inline-block; margin-top: 10px; padding: 10px 20px; color: #4ca1af; border: 2px solid #4ca1af; text-decoration: none; border-radius: 20px; font-weight: bold; font-size: 0.85rem; transition: all 0.2s; }
.btn-modal-register:hover { background: #4ca1af; color: white; }

/* Responsive */
@media (max-width: 768px) {
    .hero h2 { font-size: 2.5rem; }      
    .navbar { padding: 10px 20px; }
    .nav-brand h1 { font-size: 1rem; }
    .hero { padding: 100px 20px; }
    .info-section { padding: 50px 20px; }
}

/* ===== MARICK THEME VARIABLES - AUTO-GENERATED, DO NOT EDIT BELOW ===== */
/* Generated by admin/system_settings.php on 2026-09-18 12:22:50. Edits here are overwritten. */
:root {
    --primary: #4ca1af;
    --primary-color: #4ca1af;
    --primary-hover: #3b828e;
    --primary-rgb: 76, 161, 175;
    --accent-color: #38bdf8;
    --link-color: #0ea5e9;
    --slate-bg: #0f172a;
    --sidebar-bg: #0f172a;
    --sidebar-hover: #1e293b;
    --sidebar-text: #cbd5e1;
    --page-bg: #f1f5f9;
    --panel-bg: #ffffff;
    --text-color: #334155;
    --heading-color: #1e293b;
    --border-color: #e2e8f0;
    --button-bg: #4ca1af;
    --button-text: #ffffff;
}

body { background-color: var(--page-bg); color: var(--text-color); }
h1, h2, h3, h4, h5, h6 { color: var(--heading-color); }
.sidebar { background-color: var(--sidebar-bg) !important; }
.sidebar-header { border-bottom-color: var(--sidebar-hover) !important; }
.sidebar-header h2 { color: var(--accent-color) !important; }
.sidebar-nav li a, .sidebar-footer a { color: var(--sidebar-text) !important; }
.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background-color: var(--sidebar-hover) !important;
    color: #ffffff !important;
    border-left-color: var(--accent-color) !important;
}
.sidebar-submenu { background: var(--sidebar-bg) !important; }
.sidebar-submenu li a:hover, .sidebar-submenu li a.active { background: var(--sidebar-hover) !important; }
.unified-panel, .stat-card, .dashboard-card { background: var(--panel-bg); border-color: var(--border-color); }
.unified-table th { color: var(--heading-color); }
.unified-table td, .unified-table th { border-color: var(--border-color); }
a { color: var(--link-color); }
.btn-submit, .btn-primary, button[type="submit"].btn-submit {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
    color: var(--button-text);
}
.btn-submit:hover, .btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }
.navbar .nav-brand h1 { color: var(--heading-color); }
.dropbtn { border-color: var(--primary); color: var(--primary); }
/* ===== END MARICK THEME VARIABLES ===== */
