/* assets/css/style.css - BarangayConnect Master Stylesheet (Cabatuan Municipal Seal Color Integration) */

:root {
    /* Official Cabatuan Municipal Seal Color Palette */
    --primary-emerald: #059669;
    --primary-emerald-hover: #047857;
    --primary-emerald-dark: #064e3b;
    
    --seal-gold: #eab308;
    --seal-gold-hover: #ca8a04;
    --seal-gold-subtle: #fef9c3;
    
    --seal-crimson: #dc2626;
    --seal-crimson-hover: #b91c1c;
    --seal-crimson-subtle: #fee2e2;

    --accent-teal: #0d9488;
    --accent-sky: #0284c7;
    --bg-light: #f8fafc;
    --card-border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f8fafc;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* TOP MUNICIPAL COLOR ACCENT BAR (Gold, Crimson, Emerald, Sky Blue) */
body::before {
    content: '';
    display: block;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #eab308 0%, #dc2626 33%, #059669 66%, #0284c7 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

/* ========================================================
   AUTHENTICATION STYLING & MUNICIPAL THEMING
   ======================================================== */
.bg-auth {
    background: radial-gradient(circle at 50% 0%, #fefce8 0%, #f0fdf4 50%, #f8fafc 100%) !important;
}

.auth-card-container {
    width: 100%;
    max-width: 460px;
    padding: 0 15px;
    margin-top: 15px;
}

.auth-title {
    font-weight: 800;
    font-size: 1.85rem;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
}

.auth-card {
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid var(--seal-gold) !important;
    box-shadow: 0 12px 35px rgba(5, 150, 105, 0.12) !important;
    border-radius: 20px !important;
    background-color: #ffffff !important;
}

.official-seal-frame {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--seal-gold);
    outline: 3px solid var(--primary-emerald);
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.35);
    margin-bottom: 12px;
}

/* INPUT GROUPS */
.password-container {
    position: relative !important;
    width: 100% !important;
}

.input-group {
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1 !important;
}

.input-group:focus-within {
    border-color: var(--primary-emerald) !important;
    box-shadow: 0 0 0 3.5px rgba(5, 150, 105, 0.2) !important;
}

.input-group .input-group-text {
    color: #64748b;
}

.input-group:focus-within .input-group-text {
    color: var(--primary-emerald);
}

/* BUTTON STYLES WITH HARMONIOUS MUNICIPAL GRADIENTS */
.btn-emerald {
    background: linear-gradient(135deg, #059669 0%, #047857 70%, #ca8a04 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #047857 0%, #064e3b 70%, #a16207 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35) !important;
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25) !important;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ca8a04 0%, #a16207 100%) !important;
    color: #ffffff !important;
}

.btn-crimson {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
}

.btn-crimson:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    color: #ffffff !important;
}

/* ========================================================
   SIDEBAR & LAYOUT
   ======================================================== */
.app-container {
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    min-height: 100vh;
    border-right: 1px solid #e2e8f0 !important;
    border-top: 4px solid var(--seal-gold) !important;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    background-color: #ffffff !important;
}

.sidebar .nav-link {
    font-size: 0.925rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #475569;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    background-color: #f0fdf4;
    color: var(--primary-emerald);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    border-left: 4px solid var(--seal-gold);
}

.sidebar .nav-link.active-admin {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
    border-left: 4px solid var(--seal-gold);
}

.user-profile-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    background-color: var(--primary-emerald);
    border-radius: 50%;
    font-size: 0.95rem;
}

/* ========================================================
   TOP NAVBAR
   ======================================================== */
.top-navbar {
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* ========================================================
   DASHBOARD CARDS WITH MUNICIPAL PALETTE
   ======================================================== */
.dashboard-hero-card {
    background: linear-gradient(135deg, #047857 0%, #059669 35%, #b91c1c 80%, #ca8a04 100%) !important;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(4, 120, 87, 0.25) !important;
    border: 2px solid #fef08a !important;
}

.stat-card {
    border: 1px solid var(--card-border) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 16px !important;
    border-top: 3px solid var(--seal-gold) !important;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.12) !important;
}

.stat-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Custom Colored Icon Containers */
.bg-primary-subtle { background-color: #e0f2fe !important; }
.text-primary { color: #0284c7 !important; }

.bg-purple-subtle { background-color: #f3e8ff !important; }
.text-purple { color: #9333ea !important; }

.bg-success-subtle { background-color: #dcfce7 !important; }
.text-success { color: #166534 !important; }

.bg-orange-subtle { background-color: #ffedd5 !important; }
.text-orange { color: #c2410c !important; }

.bg-gold-subtle { background-color: #fef9c3 !important; }
.text-gold { color: #854d0e !important; }

.bg-crimson-subtle { background-color: #fee2e2 !important; }
.text-crimson { color: #991b1b !important; }

.bg-info-subtle { background-color: #e0f2fe !important; }
.text-info { color: #0284c7 !important; }

/* Status Badges */
.badge-ongoing {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-planned {
    background-color: #f1f5f9;
    color: #475569;
}

.badge-completed {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-pending {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-replied {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-email-sent {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.bg-emerald {
    background-color: var(--primary-emerald) !important;
}

.text-emerald {
    color: var(--primary-emerald) !important;
}

.bg-info-teal {
    background-color: #0284c7 !important;
}

/* ========================================================
   PROJECTS CARDS
   ======================================================== */
.project-card-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #fefce8 100%);
    height: 140px;
    border-bottom: 2px solid var(--seal-gold);
}

.project-icon-placeholder {
    background-color: #ffffff;
    width: 64px;
    height: 64px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

/* ========================================================
   ANNOUNCEMENTS
   ======================================================== */
.announcement-badge-square {
    background-color: #ecfdf5;
    width: 48px;
    height: 48px;
}

/* ========================================================
   ADMIN TABS
   ======================================================== */
.admin-nav-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
}

.admin-nav-tabs .nav-link.active {
    color: var(--primary-emerald);
    background: transparent;
    border-bottom: 3px solid var(--primary-emerald);
    font-weight: 700;
}

.category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Utility Font Sizes */
.fs-7 { font-size: 0.875rem !important; }
.fs-8 { font-size: 0.785rem !important; }
.fs-9 { font-size: 0.7rem !important; }

/* Dark Mode Styles */
body.dark-mode {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

body.dark-mode .bg-white,
body.dark-mode .card,
body.dark-mode .sidebar,
body.dark-mode .top-navbar {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-mode .text-dark {
    color: #f8fafc !important;
}

body.dark-mode .text-secondary,
body.dark-mode .text-muted {
    color: #94a3b8 !important;
}
