/* Performance optimizations */
*, *::before, *::after {
    box-sizing: border-box;
}

/* GPU acceleration for smooth animations */
.nav-btn, #searchInput, .search-btn, .clear-btn, .search-filters select, .external-link-btn {
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Theme Variables */
:root {
    /* Default theme (current violet) */
    --primary-bg: linear-gradient(135deg, #1e3a8a, #3b82f6);
    --primary-hover-bg: linear-gradient(135deg, #3b82f6, #60a5fa);
    --primary-text: #ffffff;
    --secondary-bg: #f8f9fa;
    --secondary-text: #333;
    --accent-color: #1e3a8a;
    --card-bg: #f3f4f6;
    --border-color: rgba(59, 130, 246, 0.5);
    --shadow-color: rgba(30, 58, 138, 0.3);
}

/* Dark mode theme */
[data-theme="dark"] {
    --primary-bg: linear-gradient(135deg, #0f172a, #1e293b);
    --primary-hover-bg: linear-gradient(135deg, #1e293b, #334155);
    --primary-text: #ffffff;
    --secondary-bg: #0f172a;
    --secondary-text: #e2e8f0;
    --accent-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: rgba(51, 65, 85, 0.5);
    --shadow-color: rgba(15, 23, 42, 0.5);
}

/* Admin Panel Styles */
.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-container h2 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.password-form {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

#adminPasswordInput {
    flex: 1;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

#adminPasswordInput:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.error-message {
    color: #dc2626;
    background: #fef2f2;
    padding: 8px;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 4px solid #dc2626;
}

/* Utilities Panel Styles */
.utilities-panel {
    padding: 1.5rem;
}

.utilities-header {
    text-align: center;
    margin-bottom: 2rem;
}

.utilities-header h2 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.utility-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    user-select: none;
}

.utility-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    border-color: #2563eb;
}

.utility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3b82f6;
}

.utility-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.utility-info h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.utility-info p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.utility-status {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.utilities-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.action-btn.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.action-btn.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.action-btn.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
    .utilities-grid {
        grid-template-columns: 1fr;
    }
    
    .password-form {
        flex-direction: column;
    }
    
    .utilities-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Deep blue theme */
[data-theme="deep-blue"] {
    --primary-bg: linear-gradient(135deg, #0c4a6e, #0284c7);
    --primary-hover-bg: linear-gradient(135deg, #0284c7, #0ea5e9);
    --primary-text: #ffffff;
    --secondary-bg: #e0f2fe;
    --secondary-text: #0c4a6e;
    --accent-color: #0c4a6e;
    --card-bg: #f0f9ff;
    --border-color: rgba(2, 132, 199, 0.5);
    --shadow-color: rgba(12, 74, 110, 0.3);
}

/* Natural theme */
[data-theme="natural"] {
    --primary-bg: linear-gradient(135deg, #166534, #22c55e);
    --primary-hover-bg: linear-gradient(135deg, #22c55e, #4ade80);
    --primary-text: #ffffff;
    --secondary-bg: #f0fdf4;
    --secondary-text: #166534;
    --accent-color: #166534;
    --card-bg: #f7fee7;
    --border-color: rgba(34, 197, 94, 0.5);
    --shadow-color: rgba(22, 101, 52, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    animation: none !important;
    transition: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary-text);
    background-color: var(--secondary-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles - Modern Government Inspired Dark Blue - Full Width Coverage */
header {
    background: var(--primary-bg);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    color: var(--primary-text);
    padding: 0.25rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    min-height: 54px;
    transition: background 0.3s ease;
}

/* Header right section layout */
.header-right-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

/* Theme Switcher Styles */
.theme-switcher {
    margin-bottom: 0.5rem;
}

.theme-select {
    background: var(--card-bg);
    color: var(--secondary-text);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.theme-select:hover, .theme-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.admin-header-section {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 0.5rem;
}

.admin-activate-btn-header {
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
    border: 2px solid rgba(220, 38, 38, 0.5);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 29, 29, 0.3);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-activate-btn-header:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-color: rgba(239, 68, 68, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(127, 29, 29, 0.5);
}

.admin-activate-btn-header:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(127, 29, 29, 0.4);
}

/* Navigation inside header styling */
.main-nav {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    padding-top: 0.5rem;
}

.nav-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

.nav-btn {
    background: var(--primary-bg);
    border: 2px solid var(--border-color);
    color: var(--primary-text);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 3px 10px var(--shadow-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-hover-bg);
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.nav-btn.active {
    background: var(--primary-hover-bg);
    border-color: var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.nav-btn.admin-special {
    background: var(--primary-bg);
    border-color: var(--border-color);
    box-shadow: 0 3px 10px var(--shadow-color);
}

.nav-btn.admin-special:hover {
    background: var(--primary-hover-bg);
    border-color: var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Accessibility: Focus indicators for keyboard navigation */
.nav-btn:focus {
    outline: 3px solid #2a5298;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
}

.nav-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

.nav-btn:focus-visible {
    outline: 3px solid #2a5298;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
}

/* Removed complex header animations for clarity */

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    header {
        background: var(--primary-bg);
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        min-height: 40px;
        padding: 0.5rem 0;
    }
    
    .nav-buttons-container {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 1rem;
    }
    
    .nav-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
        margin: 2px;
        min-width: 44px; /* Accessibility - minimum touch target */
        min-height: 44px; /* Accessibility - minimum touch target */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .search-container {
        padding: 1rem;
        margin: 0 0.5rem 1rem;
    }
    
    #searchInput {
        font-size: 1rem;
        padding: 0.875rem;
    }
    
    .search-btn {
        padding: 10px 12px;
        right: 6px;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .search-filters select {
        width: 100%;
        min-height: 44px; /* Accessibility */
    }
    
    .gov-links-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .external-link-btn {
        min-height: 44px; /* Accessibility */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        font-size: 0.9rem;
    }
}
    
    .header-right-section {
        align-items: center;
        width: 100%;
    }
    
    .admin-activate-btn-header {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .government-links-section {
        max-width: 300px;
    }
    
    .main-nav .nav-links {
        gap: 0.3rem;
        justify-content: center;
    }
    
    .main-nav {
        margin-top: 0.3rem;
        padding-top: 0.3rem;
    }
    
    .main-nav .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Removed mobile animations for clarity */

/* Simplified header - no animations */

/* Removed floatingElements animation for clarity */

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.external-links-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    padding: 20px;
    min-width: 280px;
}

.government-links-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 420px;
}

.government-links-title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.3rem;
}

.gov-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.gov-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 55px;
    justify-content: center;
}

.gov-link-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.gov-link-icon {
    font-size: 13px;
    margin-bottom: 1px;
}

.gov-link-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gov-link-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1.0;
    display: block;
}

.gov-link-btn:hover {
    color: #fff;
    text-decoration: none;
}

.gov-link-subtitle {
    font-size: 0.55rem;
    opacity: 0.7;
    margin-top: 1px;
}

/* Responsive design for government links */
@media (max-width: 768px) {
    .external-links-header {
        align-items: center;
        min-width: auto;
        width: 100%;
        padding: 10px;
    }
    
    .government-links-section {
        width: 100%;
        max-width: 350px;
        padding: 0.8rem;
    }
    
    .government-links-title {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .gov-links-grid {
        gap: 4px;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gov-link-item {
        padding: 4px 5px;
        min-height: 45px;
    }
    
    .gov-link-icon {
        font-size: 11px;
    }
    
    .gov-link-btn {
        font-size: 0.6rem;
    }
    
    .gov-link-subtitle {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .external-links-header {
        order: 2;
        margin-top: 1rem;
    }
    
    .government-links-section {
        max-width: 320px;
    }
    
    .gov-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .gov-link-item {
        min-height: 50px;
        padding: 5px;
    }
}

/* Admin button in navigation */
.admin-nav-item {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.admin-activate-btn-nav {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.admin-activate-btn-nav:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.admin-activate-btn-nav:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .external-links-header {
        align-items: center;
        margin-top: 15px;
    }
    
    .external-link-item .external-link-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-nav-item {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .admin-activate-btn-nav {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logos-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.city-logo, .sp-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
    background: transparent;
    border: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
    padding: 0;
}

.city-logo:hover, .sp-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.city-logo {
    border-radius: 0;
}

.sp-logo {
    border-radius: 0;
}

.title-section h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.city-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffd700;
    font-style: italic;
    margin-bottom: 0.4rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.subtitle {
    font-size: 1.4rem;
    opacity: 1;
    font-weight: 800;
    margin-bottom: 0.4rem;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    color: #ffffff;
    letter-spacing: 1px;
}

.sub-subtitle {
    font-size: 1.5rem;
    opacity: 1;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #e8f4fd;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.official-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
    color: #ffd700;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ffd700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation Styles */
.main-nav {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-link {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #2a5298;
    border-bottom-color: #2a5298;
    background-color: transparent;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: 60vh;
}

.tab-content {
    display: none;
    padding: 2rem 0;
    min-height: 400px;
}

.tab-content.active {
    display: block !important;
}

/* City Profile Section */
.city-profile-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h2 {
    color: #2a5298;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

.city-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.stat-item {
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.barangays-section h3 {
    color: #2a5298;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.barangay-category {
    margin-bottom: 3rem;
}

.barangay-category h4 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.barangay-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.barangay-item {
    background: var(--card-bg);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.barangay-item h5 {
    color: #2a5298;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.barangay-captain {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.barangay-population {
    color: #888;
    font-size: 0.8rem;
}

.locate-btn {
    background: var(--primary-bg);
    color: var(--primary-text);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.locate-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.barangay-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.barangay-description p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Search Section */
.search-section {
    max-width: 900px;
    margin: 0 auto;
}

.search-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

#searchInput {
    width: 100%;
    padding: 1rem 1rem 1rem 1rem;
    font-size: 1.1rem;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    position: relative;
}

#searchInput:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 4px rgba(42, 82, 152, 0.1), 0 4px 16px rgba(42, 82, 152, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

#searchInput:hover {
    border-color: #6c757d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-0.5px);
}

#searchInput::placeholder {
    color: #6c757d;
    transition: color 0.3s ease;
}

#searchInput:focus::placeholder {
    color: #adb5bd;
    transform: translateX(4px);
}

/* Browser compatibility fallbacks */
#searchInput:focus::-webkit-input-placeholder {
    color: #adb5bd;
    transform: translateX(4px);
}

#searchInput:focus::-moz-placeholder {
    color: #adb5bd;
    transform: translateX(4px);
}

#searchInput:focus:-ms-input-placeholder {
    color: #adb5bd;
    transform: translateX(4px);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 4px 16px rgba(42, 82, 152, 0.3);
}

.search-btn:active {
    transform: translateY(-50%) translateY(0px);
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.2);
}

.search-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-filters select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: linear-gradient(145deg, var(--primary-bg), #f8f9fa);
    color: var(--primary-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-filters select:hover {
    background: var(--primary-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-color);
    border-color: #2a5298;
}

.search-filters select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1), 0 4px 16px rgba(42, 82, 152, 0.15);
}

.search-filters select option {
    background: white;
    color: #333;
    padding: 0.5rem;
}

.clear-btn {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.clear-btn:hover {
    background: linear-gradient(135deg, #c82333, #dc3545);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.clear-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

/* Results Container */
.results-container {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Resolutions Management Styles */
.resolutions-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.resolutions-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resolutions-header h2 {
    color: #2a5298;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.resolutions-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Admin Access Styles */
.admin-access-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.admin-login-form h3 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    text-align: center;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.form-help {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Admin Controls */
.admin-controls {
    background: #e8f4f8;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid #bee5eb;
}

.admin-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-header h3 {
    color: #0c5460;
    margin: 0;
}

.csv-import-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #d1ecf1;
}

.csv-import-section h4 {
    color: #0c5460;
    margin-bottom: 1rem;
}

.csv-export-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

.csv-export-section h4 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.export-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.csv-autoload-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e8f5e8;
    margin-top: 1.5rem;
}

.csv-autoload-section h4 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.autoload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.autoload-actions small {
    color: #6c757d;
    font-style: italic;
}

/* Simple Resolutions Display */
.simple-search-section {
    margin: 1.5rem 0;
}

.simple-search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.simple-search-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
}

.recent-resolutions-container {
    background: #fff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.recent-resolutions-container h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.simple-results-container {
    padding: 0;
}

/* Simple Resolution Items */
.simple-resolution-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.simple-resolution-item:hover {
    background-color: #f8f9fa;
}

.simple-resolution-item:last-child {
    border-bottom: none;
}

.simple-resolution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.simple-resolution-number {
    font-weight: bold;
    color: #2a5298;
    font-size: 0.9rem;
}

.simple-resolution-year {
    color: #6c757d;
    font-size: 0.9rem;
}

.simple-resolution-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.simple-resolution-meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ResolutionsUpdated Styles */
.resolutions-updated-section {
    padding: 2rem;
}

.resolutions-updated-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.search-section {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
}

.resolutions-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.resolutions-container h3 {
    background: #f8f9fa;
    margin: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.resolutions-content {
    min-height: 200px;
}

.loading-message {
    padding: 3rem 2rem;
    text-align: center;
    color: #666;
}

.loading-message p {
    margin: 0.5rem 0;
}

.resolution-item-updated {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.resolution-item-updated:hover {
    background-color: #f8f9fa;
}

.resolution-item-updated:last-child {
    border-bottom: none;
}

.resolution-header-updated {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.resolution-number-updated {
    font-weight: bold;
    color: #2a5298;
    font-size: 0.9rem;
}

.resolution-year-updated {
    color: #6c757d;
    font-size: 0.9rem;
}

.resolution-title-updated {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0.5rem 0;
}

.resolution-meta-updated {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.file-input-group {
    margin-bottom: 1.5rem;
}

.file-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: linear-gradient(135deg, #138496, #17a2b8);
    transform: translateY(-1px);
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.import-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.3s ease;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-text {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

.import-results {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.import-results.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.import-results.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Public Access Controls */
.public-access-controls {
    text-align: center;
    margin-bottom: 2rem;
}

/* Search and Filter Styles */
.resolutions-search-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
    margin-top: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* Results Section */
.resolutions-results-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.results-header {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-count {
    font-weight: 600;
    color: #2a5298;
}

.results-filter {
    font-size: 0.875rem;
    color: #6c757d;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6c757d;
}

.results-container {
    min-height: 400px;
    padding: 2rem;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #2a5298;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.resolution-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.resolution-item:hover {
    border-color: #2a5298;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.1);
}

.resolution-header {
    display: flex;
    justify-content: between;
    align-items: start;
    margin-bottom: 1rem;
}

.resolution-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2a5298;
    background: #e8f4f8;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.resolution-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.resolution-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.resolution-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.resolution-author {
    color: #495057;
}

.resolution-year {
    color: #6c757d;
}

.resolution-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.resolution-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #2a5298;
    background: transparent;
    color: #2a5298;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #2a5298;
    color: white;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.page-info {
    font-size: 0.875rem;
    color: #495057;
    margin: 0 1rem;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: translateY(-1px);
}

.view-btn {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Force modal to close when needed */
.modal[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* Temporarily disable all modals */
#resolutionModal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}

/* Search highlighting */
.search-highlight {
    background-color: #ffeb3b;
    color: #333;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: bold;
}

/* Full content display */
.result-full-content {
    max-height: 200px;
    overflow: hidden;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2a5298;
    white-space: pre-wrap;
    transition: max-height 0.3s ease;
}

.view-content-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.view-content-btn:hover {
    background: linear-gradient(135deg, #218838, #1a8a5a);
    transform: translateY(-1px);
}

.search-in-content-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.search-in-content-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #495057, #6c757d);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #2a5298;
    border: 2px solid #2a5298;
}

.btn-outline:hover:not(:disabled) {
    background: #2a5298;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resolutions-section {
        padding: 1rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .import-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .resolution-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .resolution-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }
}

.welcome-message {
    padding: 3rem 2rem;
    text-align: center;
}

.welcome-message h2 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.welcome-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.quick-search h3 {
    margin-bottom: 1rem;
    color: #333;
}

.example-searches {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.example-btn {
    padding: 0.5rem 1rem;
    background: #e9ecef;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.example-btn:hover {
    background: #2a5298;
    color: white;
}

/* Ordinance Cards */
.ordinance-card {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ordinance-card:hover {
    background-color: #f8f9fa;
}

.ordinance-card:last-child {
    border-bottom: none;
}

.ordinance-number {
    font-weight: 900;
    color: #2a5298;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.ordinance-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
}

.ordinance-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.ordinance-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Browse Section */
.browse-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2a5298;
    font-size: 2rem;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.year-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.year-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    background: #2a5298;
    color: white;
}

.year-card.active {
    background: #2a5298;
    color: white;
}

.year-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.year-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Categories Section */
.categories-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2a5298;
    font-size: 2rem;
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 900;
}

.category-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #2a5298;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Statistics Section */
.statistics-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2a5298;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e3c72;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.chart-card h3 {
    color: #2a5298;
    margin-bottom: 1rem;
    text-align: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 2rem;
    background: #2a5298;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.8;
}

.modal-body h3 {
    color: #2a5298;
    margin: 1.5rem 0 1rem 0;
}

.modal-body p {
    margin-bottom: 1rem;
    text-align: justify;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-bg);
    color: var(--primary-text);
    border: 2px solid var(--border-color);
}

.btn-primary:hover {
    background: var(--primary-hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-secondary {
    background: var(--primary-bg);
    color: var(--primary-text);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--primary-hover-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Footer */
footer {
    background: #1e3c72;
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a5298;
    opacity: 0.8;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-left-color: #2a5298;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .title-section h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.75rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .search-container {
        padding: 1.5rem;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-filters select,
    .clear-btn,
    .advanced-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .example-searches {
        flex-direction: column;
        align-items: center;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .year-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    /* Officials Section Mobile */
    .officials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .official-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .council-stats {
        grid-template-columns: 1fr;
    }
    
    /* Contact Section Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    /* About Section Mobile */
    .developer-hero {
        padding: 2rem 1rem;
    }
    
    .developer-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .developer-name {
        font-size: 2rem;
    }
    
    .developer-title {
        font-size: 1.1rem;
    }
    
    .developer-experience {
        justify-content: center;
    }
    
    .about-content {
        padding: 2rem 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-highlights {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    /* Advanced Search Modal Mobile */
    .advanced-search-form .form-group {
        margin-bottom: 1rem;
    }
    
    .advanced-search-form input,
    .advanced-search-form select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .title-section h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .header-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .search-container {
        padding: 1rem;
    }
    
    #searchInput {
        font-size: 1rem;
    }
    
    .ordinance-card {
        padding: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
}

.page-btn {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    background: var(--card-bg);
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #2a5298;
    color: #2a5298;
}

.page-btn.active {
    background: #2a5298;
    color: white;
    border-color: #2a5298;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0.5rem 0.25rem;
    color: #666;
}

/* Results Header */
.results-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.results-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2a5298;
    font-size: 1.3rem;
}

.results-meta {
    color: #666;
    font-size: 0.9rem;
}

/* No Results */
.no-results {
    padding: 3rem 2rem;
    text-align: center;
    color: #666;
}

.no-results h3 {
    color: #2a5298;
    margin-bottom: 1rem;
}

/* Year Results */
.year-results-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.year-results-header h3 {
    color: #2a5298;
    margin: 0;
    text-align: center;
}

/* Category Results */
.category-results {
    margin-top: 2rem;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2a5298;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Highlight Search Terms */
mark {
    background-color: #fff3cd;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Smooth Transitions */
.ordinance-card,
.category-card,
.year-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Search Filters */
.search-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.advanced-btn {
    padding: 0.5rem 1rem;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.advanced-btn:hover {
    background: #138496;
}

/* Officials Section */
.officials-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.officials-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.admin-controls {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #2a5298;
}

.admin-controls h3 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.officials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.official-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.official-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.official-photo {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    position: relative;
    overflow: hidden;
}

.official-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #999;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.official-card:hover .upload-overlay {
    opacity: 1;
}

.upload-text {
    color: white;
    text-align: center;
}

.official-info {
    padding: 1.5rem;
}

.official-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.official-position {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.official-contact {
    font-size: 0.9rem;
    color: #888;
}

.council-info {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.council-info h3 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.council-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.council-stat {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

/* Council Header Styles */
.council-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.council-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    text-align: center;
}

.city-logo, .sp-logo {
    width: 80px;
    height: 80px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    object-fit: contain;
}

.council-title-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.council-title-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.council-title-section h3 {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Council Section Grids */
.leadership-section, .officers-section, .members-section, .secretary-section {
    margin-bottom: 3rem;
}

.leadership-section h3, .officers-section h3, .members-section h3, .secretary-section h3 {
    color: #2a5298;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    position: relative;
}

.leadership-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #2a5298, #4a90e2);
    border-radius: 3px;
}

/* Enhanced section spacing and design */
.leadership-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 32px;
    padding: 4rem 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 16px 48px rgba(42, 82, 152, 0.12);
    border: 2px solid rgba(42, 82, 152, 0.1);
    position: relative;
    overflow: hidden;
}

.leadership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #2a5298, #4a90e2, #2a5298);
}

/* Enhanced Animations */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.executive-leadership-grid .official-card:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out;
}

.executive-leadership-grid .official-card:nth-child(2) {
    animation: slideInFromRight 0.8s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.council-leadership-grid .official-card:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out;
    animation-delay: 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.council-leadership-grid .official-card:nth-child(2) {
    animation: slideInFromLeft 0.8s ease-out;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.council-leadership-grid .official-card:nth-child(3) {
    animation: slideInFromLeft 0.8s ease-out;
    animation-delay: 0.8s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.executive-leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Executive Leadership Cards - Landscape */
.executive-leadership-grid .official-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2a5298 0%, #4a90e2 100%);
    color: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 16px 40px rgba(42, 82, 152, 0.3);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.executive-leadership-grid .official-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.executive-leadership-grid .official-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 56px rgba(42, 82, 152, 0.4);
}

.executive-leadership-grid .official-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin-right: 3rem;
    border: 6px solid rgba(255,255,255,0.4);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.executive-leadership-grid .official-card:hover .official-photo {
    border-color: rgba(255,255,255,0.7);
    transform: scale(1.05);
}

.executive-leadership-grid .official-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.executive-leadership-grid .official-card h4 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.executive-leadership-grid .official-card .position {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.executive-leadership-grid .official-card .contact {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.15);
    padding: 1rem 2rem;
    border-radius: 30px;
    display: inline-block;
    align-self: flex-start;
    backdrop-filter: blur(10px);
}

.council-leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Landscape Council Leadership Cards */
.council-leadership-grid .official-card {
    display: flex;
    align-items: center;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(42, 82, 152, 0.18);
    border: 3px solid rgba(42, 82, 152, 0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.council-leadership-grid .official-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 56px rgba(42, 82, 152, 0.3);
    border-color: rgba(42, 82, 152, 0.4);
}

.council-leadership-grid .official-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #2a5298, #4a90e2);
    transition: width 0.4s ease;
}

.council-leadership-grid .official-card:hover::before {
    width: 12px;
}

.council-leadership-grid .official-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-right: 3rem;
    border: 6px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.council-leadership-grid .official-card:hover .official-photo {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(42, 82, 152, 0.25);
}

.council-leadership-grid .official-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.council-leadership-grid .official-card h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2a5298;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.council-leadership-grid .official-card .position {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.council-leadership-grid .official-card .contact {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    background: rgba(42, 82, 152, 0.08);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    align-self: flex-start;
}

.council-leadership-grid .manage-authorship-btn {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.council-leadership-grid .manage-authorship-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.4);
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 768px) {
    .leadership-section {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2.5rem;
        border-radius: 20px;
    }
    
    .executive-leadership-grid {
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .executive-leadership-grid .official-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
        min-height: auto;
    }
    
    .executive-leadership-grid .official-photo {
        width: 150px;
        height: 150px;
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .executive-leadership-grid .official-card h4 {
        font-size: 1.8rem;
    }
    
    .executive-leadership-grid .official-card .position {
        font-size: 1.2rem;
    }
    
    .council-leadership-grid {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .council-leadership-grid .official-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
        min-height: auto;
    }
    
    .council-leadership-grid .official-photo {
        margin-right: 0;
        margin-bottom: 2rem;
        width: 140px;
        height: 140px;
    }
    
    .council-leadership-grid .official-info {
        align-items: center;
    }
    
    .council-leadership-grid .official-card h4 {
        font-size: 1.6rem;
    }
    
    .council-leadership-grid .official-card .position {
        font-size: 1.1rem;
    }
    
    .council-leadership-grid .official-card .contact {
        font-size: 1rem;
        text-align: center;
    }
}

.secretary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Enhanced Official Card Styles */
.official-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid #f0f0f0;
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.official-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #2a5298, #1e3c72, #4a69bd);
    z-index: 2;
}

.official-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.2);
    border-color: #2a5298;
}

.official-photo {
    width: 100%;
    height: 340px;
    background: linear-gradient(135deg, #f0f0f0, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    position: relative;
    overflow: hidden;
}

.official-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.official-card:hover .official-portrait {
    transform: scale(1.08);
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 4rem;
}

.photo-placeholder span:first-child {
    font-size: 5.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.photo-placeholder small {
    font-size: 1.1rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.official-info {
    padding: 2.2rem 1.8rem;
    background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.official-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.official-position {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 1.2rem;
    padding: 0.4rem 1rem;
    background: rgba(42, 82, 152, 0.12);
    border-radius: 25px;
    display: inline-block;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid rgba(42, 82, 152, 0.2);
}

.official-contact {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.official-contact a {
    color: #4a69bd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.official-contact a:hover {
    color: #2a5298;
    background: #f0f4ff;
    text-decoration: underline;
}

.official-term {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.2rem;
    padding: 0.4rem 1rem;
    background: #f8f9fa;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.official-committees {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    text-align: left;
}

.official-committees strong {
    color: #2a5298;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.75rem;
}

.committee-list {
    list-style: none;
    margin-top: 0.5rem;
    display: grid;
    gap: 0.4rem;
}

.committee-list li {
    font-size: 0.8rem;
    color: #666;
    padding: 0.4rem 0.6rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2a5298;
    transition: all 0.3s ease;
}

.committee-list li:hover {
    background: #e9ecef;
    transform: translateX(3px);
    color: #333;
}

.more-committees {
    font-style: italic;
    color: #2a5298;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, #f0f4ff, #f8f9fa);
    border-left-color: #ffd700;
}

.more-committees:hover {
    background: linear-gradient(135deg, #e6f0ff, #e9ecef);
}

/* Committee Section Styles - Enhanced */
.committees-section {
    margin-bottom: 3rem;
}

.committees-section h3 {
    color: #2a5298;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid #e9ecef;
    position: relative;
}

.committees-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border-radius: 2px;
}

.committees-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.committee-search, .committee-filter {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
    background: white;
}

.committee-search:focus, .committee-filter:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.committee-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    position: relative;
}

.committee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
}

.committee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    border-color: #2a5298;
}

.committee-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.committee-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(42, 82, 152, 0.3);
}

.committee-name {
    color: #2a5298;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    padding-right: 60px;
}

.committee-content {
    padding: 1.5rem;
}

.committee-leadership {
    margin-bottom: 1.5rem;
}

.leadership-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.leadership-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.leadership-item.chair {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fff8dc, #f8f9fa);
}

.leadership-item.co-chair {
    border-left-color: #2a5298;
    background: linear-gradient(135deg, #f0f4ff, #f8f9fa);
}

.leadership-item.vice-chair {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f0fff4, #f8f9fa);
}

.role-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.role-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.2rem;
}

.role-content strong {
    color: #2a5298;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.role-content span {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

.committee-members {
    background: linear-gradient(135deg, #f0f8ff, #f8f9fa);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.committee-members strong {
    color: #2a5298;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.members-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.members-list li {
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    border-left: 3px solid #2a5298;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.members-list li:hover {
    background: #f0f4ff;
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.committee-card {
    animation: fadeInUp 0.6s ease forwards;
}

.committee-card:nth-child(1) { animation-delay: 0.1s; }
.committee-card:nth-child(2) { animation-delay: 0.2s; }
.committee-card:nth-child(3) { animation-delay: 0.3s; }
.committee-card:nth-child(4) { animation-delay: 0.4s; }
.committee-card:nth-child(5) { animation-delay: 0.5s; }
.committee-card:nth-child(6) { animation-delay: 0.6s; }

/* Developer Contact Card Enhancement */
.developer-contact {
    border: 2px solid #2a5298;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.developer-contact::before {
    content: "💼 FREELANCE AVAILABLE";
    position: absolute;
    top: -10px;
    right: 15px;
    background: #2a5298;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.developer-contact .contact-icon {
    color: #2a5298;
    font-size: 3.5rem;
}

.developer-contact h3 {
    color: #1e3c72;
}

.developer-contact .contact-details a {
    color: #2a5298;
    font-weight: 600;
}

/* Admin Controls Styling */
.admin-controls {
    background: #f8f9fa;
    border: 2px solid #2a5298;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.admin-controls h3 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.admin-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.admin-buttons .btn {
    flex: 1;
    min-width: 150px;
}

.edit-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.edit-section h4, .edit-section h5 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #2a5298;
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.2);
}

.officer-edit, .member-edit {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.committee-edit {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2a5298;
}

.committee-roles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .committee-roles {
        grid-template-columns: 1fr;
    }
    
    .admin-buttons {
        flex-direction: column;
    }
}

/* Contact Section */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.contact-details {
    text-align: left;
    line-height: 1.6;
}

.contact-details a {
    color: #2a5298;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Email Form */
.email-form-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.email-form-section h3 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Search input wrapper with icon */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.search-input-wrapper input {
    padding-left: 40px !important;
    width: 100%;
}

/* Optional field labels */
.optional {
    font-weight: 400;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.contact-form button {
    justify-self: start;
    margin-right: 1rem;
}

/* Emergency Contacts */
.emergency-contacts {
    background: #dc3545;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.emergency-contacts h3 {
    margin-bottom: 1.5rem;
    color: white;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.emergency-item {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

/* About Developer Section */
.about-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

.developer-hero {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.developer-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.developer-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.2);
}

.developer-icon {
    font-size: 4rem;
}

.developer-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.developer-info {
    flex: 1;
}

.developer-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.developer-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.developer-position {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.5;
}

.developer-experience {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.experience-badge,
.specialization-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.about-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h3 {
    color: #2a5298;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #2a5298;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-category h4 {
    color: #2a5298;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    color: #666;
}

.skill-category li:last-child {
    border-bottom: none;
}

.portfolio-showcase {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.portfolio-showcase h3 {
    color: #2a5298;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.project-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-feature {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-feature h5 {
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.project-feature p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.value-proposition {
    margin-bottom: 3rem;
}

.value-proposition h3 {
    color: #2a5298;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.value-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: #2a5298;
    transform: translateY(-2px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.value-item h5 {
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.freelance-services {
    background: #2a5298;
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.freelance-services h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #ffd700;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.service-item h5 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-item p {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-cta h3 {
    color: #2a5298;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info-mini {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
}

.contact-info-mini p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.testimonial-placeholder {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.testimonial-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.testimonial-content cite {
    color: #ffd700;
    font-weight: 600;
}

/* Focus States for Accessibility */
.search-box input:focus,
.nav-link:focus,
.btn:focus,
.ordinance-card:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #2a5298;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .main-nav,
    .search-container,
    .modal-footer,
    footer {
        display: none;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .modal-body {
        max-height: none;
        overflow: visible;
    }
    
    body {
        background: white;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logos-container {
        justify-content: center;
    }
    
    .city-logo, .sp-logo {
        width: 70px;
        height: 70px;
    }
    
    .title-section h1 {
        font-size: 1.8rem;
    }
    
    .city-tagline {
        font-size: 0.9rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
    
    .sub-subtitle {
        font-size: 1.2rem;
    }
    
    .official-subtitle {
        font-size: 0.8rem;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        padding: 0.5rem;
    }
    
    header {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .city-logo, .sp-logo {
        width: 60px;
        height: 60px;
    }
    
    .title-section h1 {
        font-size: 1.5rem;
    }
    
    .city-tagline {
        font-size: 0.8rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .sub-subtitle {
        font-size: 1rem;
    }
    
    .official-subtitle {
        font-size: 0.75rem;
    }
}

/* City Profile Styles */
.profile-section {
    padding: 2rem 0;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h2 {
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.profile-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.city-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.city-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.city-stat-card .stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border-radius: 50%;
    color: white;
}

.city-stat-card .stat-content h4 {
    color: #2a5298;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.city-stat-card .stat-content p {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3rem;
}

.city-stat-card .stat-content span {
    color: #666;
    font-size: 0.9rem;
}

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-description {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.profile-description h3 {
    color: #2a5298;
    margin-bottom: 1rem;
}

.profile-description p {
    line-height: 1.8;
    color: #555;
}

/* Map Section Styles */
.map-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.map-section h3 {
    color: #2a5298;
    margin-bottom: 1.5rem;
}

.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-filters {
    display: flex;
    gap: 0.5rem;
}

.map-filter-btn {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.map-filter-btn:hover {
    background: #e9ecef;
    border-color: #2a5298;
}

.map-filter-btn.active {
    background: #2a5298;
    border-color: #2a5298;
    color: white;
}

.map-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.urban-color {
    background-color: #2a5298;
}

.rural-color {
    background-color: #28a745;
}

.city-map {
    height: 1000px; /* Increased from 500px to 1000px (2x) */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 800px; /* Ensure minimum height for better viewing */
}

/* Barangay Section Styles */
.barangay-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.barangay-section h3 {
    color: #2a5298;
    margin-bottom: 1.5rem;
}

.barangay-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.barangay-search-input,
.barangay-filter-select {
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.barangay-search-input {
    flex: 1;
}

.barangay-search-input:focus,
.barangay-filter-select:focus {
    outline: none;
    border-color: #2a5298;
}

.barangay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.barangay-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: white;
}

.barangay-card:hover {
    border-color: #2a5298;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.barangay-card.urban {
    border-left: 5px solid #2a5298;
}

.barangay-card.rural {
    border-left: 5px solid #28a745;
}

.barangay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.barangay-header h4 {
    color: #2a5298;
    margin: 0;
}

.barangay-type {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.barangay-type.urban {
    background: #e3f2fd;
    color: #2a5298;
}

.barangay-type.rural {
    background: #e8f5e8;
    color: #28a745;
}

.barangay-info .population {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.barangay-info .description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.locate-btn {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.locate-btn:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: translateY(-2px);
}

/* Infrastructure Section Styles */
.infrastructure-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.infrastructure-section h3 {
    color: #2a5298;
    margin-bottom: 1.5rem;
}

.infrastructure-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.infra-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.infra-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border-radius: 50%;
    color: white;
}

.infra-info {
    flex: 1;
}

.infra-info h4 {
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.infra-info span {
    color: #666;
    font-size: 0.9rem;
}

/* Economic Profile Styles */
.economic-profile {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.economic-profile h3 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    text-align: center;
}

.economic-sectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sector-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.sector-card:hover {
    border-color: #2a5298;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sector-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.sector-card h4 {
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.sector-card p {
    color: #666;
    line-height: 1.5;
}

/* News Updates Styles */
.news-section {
    padding: 2rem 0;
}

.news-header {
    text-align: center;
    margin-bottom: 2rem;
}

.news-header h2 {
    color: #2a5298;
    margin-bottom: 0.5rem;
    font-size: 3rem;
    font-weight: 700;
}

.news-subtitle {
    color: #666;
    font-size: 1.4rem;
    font-weight: 500;
}

.news-categories {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #495057;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-tab:hover {
    background: #e9ecef;
    border-color: #2a5298;
}

.category-tab.active {
    background: #2a5298;
    border-color: #2a5298;
    color: white;
}

.news-content {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-news,
.recent-news {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.featured-news h3,
.recent-news h3 {
    color: #2a5298;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 600;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.featured-news-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-news-card:hover {
    border-color: #2a5298;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.upcoming {
    background: #ffc107;
    color: #333;
}

.status-badge.published {
    background: #28a745;
    color: white;
}

.news-content {
    padding: 2.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.news-category {
    background: #e3f2fd;
    color: #2a5298;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 15px;
}

.news-title {
    color: #2a5298;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 2rem;
    font-weight: 600;
}

.news-summary {
    color: #444;
    line-height: 1.8;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
}

.read-more-btn {
    background: var(--primary-bg);
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.5);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-list-item {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.news-list-item:hover {
    border-color: #2a5298;
    background: #f8f9fa;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.news-item-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.news-item-icon {
    font-size: 1.2rem;
}

.news-item-category {
    background: #e3f2fd;
    color: #2a5298;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.news-item-title {
    color: #2a5298;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 1.6rem;
    font-weight: 600;
}

.news-item-summary {
    color: #444;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.news-item-actions {
    display: flex;
    gap: 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: #2a5298;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0;
}

.btn-link:hover {
    color: #1e3c72;
}

/* External Links Section */
.external-links {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.external-links h3 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    text-align: center;
}

.external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.external-link-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.external-link-card:hover {
    border-color: #2a5298;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.external-link-card h4 {
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.external-link-card p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.external-link-btn {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary-text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.external-link-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.5);
}

/* News Modal Styles */
.news-modal .modal-content {
    max-width: 800px;
}

.news-modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    padding-bottom: 1rem;
    border-bottom: 2px solid #dee2e6;
}

.news-modal-category {
    background: #e3f2fd;
    color: #2a5298;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: bold;
}

.news-modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.news-modal-content {
    line-height: 2;
    color: #333;
    font-size: 1.2rem;
}

.news-modal-content h4 {
    color: #2a5298;
    margin: 2rem 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.news-modal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

/* Responsive Styles for New Sections */
@media (max-width: 768px) {
    .city-stats-grid,
    .economic-sectors,
    .featured-news-grid,
    .external-links-grid {
        grid-template-columns: 1fr;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .map-filters {
        justify-content: center;
    }
    
    .map-legend {
        justify-content: center;
    }
    
    .barangay-search {
        flex-direction: column;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .news-item-meta {
        flex-wrap: wrap;
    }
    
    .city-map {
        height: 800px; /* Increased from 400px to 800px (2x) */
        min-height: 600px;
    }
    
    .infrastructure-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-section,
    .news-section {
        padding: 1rem 0;
    }
    
    .featured-news,
    .recent-news,
    .profile-description,
    .map-section,
    .barangay-section,
    .infrastructure-section,
    .economic-profile,
    .external-links {
        padding: 1.5rem;
    }
    
    .city-stat-card,
    .infra-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .city-stat-card .stat-icon,
    .infra-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .city-map {
        height: 600px; /* Increased from 300px to 600px (2x) */
        min-height: 400px;
    }
    
    .news-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* People Directory Styles */
.people-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Authentication Section */
.auth-section {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e6ed;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: #2a5298;
    margin-bottom: 0.5rem;
}

.security-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #856404;
    font-size: 0.9rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.auth-btn {
    width: 100%;
    background: #2a5298;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.auth-btn:hover:not(:disabled) {
    background: #1e3c72;
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn-loading {
    display: none;
}

/* Access Level Descriptions */
.access-levels {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.access-levels h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.access-levels ul {
    list-style: none;
    padding-left: 0;
}

.access-levels li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.access-levels li::before {
    content: "🔹";
    font-size: 0.8rem;
}

/* People Interface */
.people-interface {
    display: none;
}

.user-session {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.access-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.access-badge.public { background: #e9ecef; color: #495057; }
.access-badge.barangay { background: #d1ecf1; color: #0c5460; }
.access-badge.department { background: #d4edda; color: #155724; }
.access-badge.admin { background: #f8d7da; color: #721c24; }
.access-badge.emergency { background: #fff3cd; color: #856404; }

.session-timer {
    font-size: 0.9rem;
    color: #666;
    font-family: monospace;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
}

/* Search Interface */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-section h3 {
    color: #2a5298;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #218838;
}

.clear-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.clear-btn:hover {
    background: #5a6268;
}

.advanced-search-btn {
    background: transparent;
    color: #2a5298;
    border: 1px solid #2a5298;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.advanced-search-btn:hover {
    background: #2a5298;
    color: white;
}

/* Results Section */
.results-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-status {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    color: #666;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Person Cards */
.person-card {
    background: white;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #2a5298;
}

.person-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.person-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-initial {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.person-name h4 {
    margin: 0 0 0.25rem 0;
    color: #2a5298;
    font-size: 1.1rem;
}

.person-age {
    color: #666;
    font-size: 0.9rem;
}

.person-info p {
    margin: 0.5rem 0;
    color: #555;
    font-size: 0.9rem;
}

.person-info strong {
    color: #333;
}

.person-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.gender-badge,
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.gender-badge.m { background: #cce5ff; color: #0066cc; }
.gender-badge.f { background: #ffe0e6; color: #cc0066; }

.status-badge {
    background: #e9ecef;
    color: #495057;
}

/* Person Modal */
.person-modal .modal-content {
    max-width: 600px;
}

.person-details {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-avatar {
    flex-shrink: 0;
}

.avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
}

.detail-info h3 {
    color: #2a5298;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: #2a5298;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.access-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #2a5298;
}

/* Statistics Section */
.stats-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2a5298;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Audit Section */
.audit-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: none;
}

.audit-section h3 {
    color: #dc3545;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audit-entries {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
}

.audit-entry {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.audit-entry:last-child {
    border-bottom: none;
}

.audit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.audit-time {
    font-size: 0.9rem;
    color: #666;
    font-family: monospace;
}

.audit-action {
    background: #2a5298;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.audit-details {
    font-size: 0.9rem;
    color: #555;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success { background: #28a745; }
.notification.error { background: #dc3545; }
.notification.info { background: #17a2b8; }

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* News Modal Author Styling */
.news-modal-author {
    color: #666 !important;
    font-style: italic;
    font-size: 0.9rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid #e0e6ed;
}

.news-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e6ed;
}

.news-modal-content {
    line-height: 1.8;
    color: #333;
}

.news-modal-content p {
    margin-bottom: 1rem;
}

.news-modal-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.news-modal-content li {
    margin-bottom: 0.5rem;
}

/* Fix any potential blinking issues */
* {
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    -ms-animation: none !important;
    animation: none !important;
}

/* Only allow specific animations that are intentional */
.slideIn {
    -webkit-animation: slideIn 0.3s ease !important;
    -moz-animation: slideIn 0.3s ease !important;
    -o-animation: slideIn 0.3s ease !important;
    -ms-animation: slideIn 0.3s ease !important;
    animation: slideIn 0.3s ease !important;
}

/* Birthday and Age Enhancement Styles */
.birthday-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.birthday-badge.today {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: white;
    animation: birthday-glow 2s ease-in-out infinite alternate;
}

.birthday-badge.tomorrow {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.birthday-badge.soon {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #2a5298;
}

@keyframes birthday-glow {
    from {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
}

.age-detail {
    font-size: 0.9rem;
    color: #666;
    cursor: help;
}

.detailed-age-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    font-family: 'Segoe UI', monospace;
}

.person-card .person-name h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.person-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Responsive Design for People Directory */
@media (max-width: 768px) {
    .auth-section {
        margin: 1rem;
        padding: 2rem;
    }
    
    .user-session {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .search-actions {
        flex-direction: column;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .person-details {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .notification {
        left: 10px;
        right: 10px;
        min-width: auto;
    }
}

/* ===== RESOLUTIONS MODULE STYLES ===== */

/* Resolutions Tab Content */
.resolutions-section {
    padding: 2rem 0;
}

.resolutions-header {
    text-align: center;
    margin-bottom: 2rem;
}

.resolutions-header h2 {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.resolutions-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Resolutions Controls */
.resolutions-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.control-group .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.control-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Resolutions Search */
.resolutions-search {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Resolutions Stats */
.resolutions-stats {
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Resolution Cards */
.resolutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resolution-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.resolution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.resolution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.resolution-number {
    font-weight: bold;
    color: #1e3c72;
    font-size: 1.1rem;
}

.resolution-date {
    color: #666;
    font-size: 0.9rem;
}

.resolution-title h3 {
    color: #333;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.resolution-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.resolution-category {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.resolution-sponsor {
    color: #666;
    font-size: 0.9rem;
}

.resolution-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-enacted {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

.status-under-review {
    background: #f3e5f5;
    color: #7b1fa2;
}

.resolution-summary {
    margin-bottom: 1rem;
}

.resolution-summary p {
    color: #555;
    line-height: 1.5;
}

.resolution-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.keyword-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    border: 1px solid #dee2e6;
}

.resolution-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
}

.resolution-modal {
    max-width: 900px;
}

.pdf-viewer-modal {
    max-width: 95vw;
    max-height: 95vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-header .close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.modal-header .close:hover {
    opacity: 1;
}

.pdf-controls {
    display: flex;
    gap: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
}

/* CSV Import Styles */
.import-instructions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #2a5298;
}

.import-instructions h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.import-instructions ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.import-instructions li {
    margin-bottom: 0.5rem;
}

.csv-preview {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.csv-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.csv-preview-table th,
.csv-preview-table td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.csv-preview-table th {
    background: #e9ecef;
    font-weight: 600;
}

/* PDF Viewer Styles */
.pdf-container {
    padding: 0;
    background: #f5f5f5;
    position: relative;
    min-height: 70vh;
}

.pdf-container iframe {
    width: 100%;
    height: 70vh;
    border: none;
    background: white;
}

.pdf-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.pdf-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
    max-width: 400px;
}

.pdf-error h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.pdf-error ul {
    text-align: left;
    margin: 1rem 0;
}

.pdf-error li {
    margin-bottom: 0.5rem;
}

/* Enhanced ordinance card styles */
.ordinance-card.has-pdf {
    border-left: 4px solid #28a745;
}

.pdf-availability.pdf-available {
    color: #28a745;
    font-weight: 500;
}

.pdf-availability.pdf-unavailable {
    color: #6c757d;
    font-style: italic;
}

.pdf-btn {
    margin-right: 0.5rem;
}

.btn-tertiary {
    background: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.btn-tertiary:hover {
    background: #5a6268;
    border-color: #545b62;
    color: white;
}

/* PDF Upload & Management Styles */
.file-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.file-details p {
    margin: 0.5rem 0;
    color: #495057;
}

.file-details strong {
    color: #1e3c72;
}

.management-stats {
    margin-bottom: 2rem;
}

.management-controls {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.management-controls .btn {
    flex: 1;
    min-width: 150px;
}

.uploaded-pdfs-list {
    margin-top: 2rem;
}

.uploads-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.upload-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.upload-info strong {
    color: #1e3c72;
    font-size: 1.1rem;
}

.upload-size,
.upload-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.upload-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: white;
}

.no-uploads {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-uploads h4 {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Admin Integration Styles */
.admin-pdf-controls {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.admin-pdf-controls h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.admin-pdf-controls .control-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-pdf-controls .btn {
    min-width: 180px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .management-controls {
        flex-direction: column;
    }
    
    .management-controls .btn {
        min-width: auto;
    }
    
    .upload-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .upload-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-pdf-controls .control-buttons {
        flex-direction: column;
    }
    
    .admin-pdf-controls .btn {
        min-width: auto;
    }
}

/* Results and Search Styles */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 2px solid #f8f9fa;
}

.results-header h3 {
    color: #1e3c72;
    margin: 0;
}

.results-controls select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-results h3 {
    color: #1e3c72;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
}

/* Loading States */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2a5298;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
}

.notification-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
}

.notification-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.notification-info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Resolution Details Styles */
.resolution-details {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    margin-bottom: 1rem;
    align-items: center;
}

.detail-row strong {
    min-width: 120px;
    color: #1e3c72;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-actions {
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    text-align: right;
}

.modal-actions .btn {
    margin-left: 0.5rem;
}

/* Responsive Design for Resolutions */
@media (max-width: 768px) {
    .resolutions-header h2 {
        font-size: 2rem;
    }
    
    .control-group {
        justify-content: stretch;
    }
    
    .control-group .btn {
        flex: 1;
        text-align: center;
    }
    
    .resolutions-grid {
        grid-template-columns: 1fr;
    }
    
    .resolution-card {
        padding: 1rem;
    }
    
    .resolution-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .resolution-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .pdf-container iframe {
        height: 50vh;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .resolution-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .csv-preview-table {
        font-size: 0.8rem;
    }
    
    .csv-preview-table th,
    .csv-preview-table td {
        padding: 0.3rem;
    }
}

/* ===== ENHANCED SEARCH RESULTS STYLES ===== */
.enhanced-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.enhanced-results-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.results-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.current-indicator {
    font-size: 1.1rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.quick-jump {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.quick-jump input {
    width: 80px;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.quick-jump button {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quick-jump button:hover {
    background: #218838;
    transform: translateY(-1px);
}

.enhanced-ordinance-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-ordinance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

.enhanced-ordinance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.ordinance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.ordinance-number-large {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #dee2e6;
}

.ordinance-number-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ordinance-number-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.ordinance-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pdf-btn.enhanced, .view-full-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.pdf-btn.enhanced:hover, .view-full-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.ordinance-title-enhanced {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-left: 4px solid #007bff;
    border-radius: 8px;
}

.ordinance-meta-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
}

.ordinance-content-preview {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.ordinance-content-preview h4 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.content-text {
    line-height: 1.7;
    color: #495057;
    font-size: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Full Content Display Styles */
.ordinance-full-content {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.content-header h4 {
    color: #495057;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.content-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toggle-content-btn, .print-content-btn, .copy-content-btn, .content-stats-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.toggle-content-btn:hover, .print-content-btn:hover, .copy-content-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.content-stats-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    cursor: default;
}

.copy-content-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.print-content-btn {
    background: linear-gradient(135deg, #fd7e14, #e65100);
}

.full-content-text {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
    max-height: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: justify;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.full-content-text.collapsed {
    max-height: 500px;
    overflow-y: auto;
}

.enhanced-ordinance-card.full-content {
    max-width: none;
    margin: 0 auto 2rem;
}

/* Enhanced scrollbar for full content */
.full-content-text::-webkit-scrollbar {
    width: 8px;
}

.full-content-text::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
}

.full-content-text::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

.full-content-text::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Responsive adjustments for full content */
@media (max-width: 768px) {
    .content-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .content-controls {
        justify-content: center;
    }
    
    .toggle-content-btn, .print-content-btn, .copy-content-btn, .content-stats-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .full-content-text {
        padding: 1rem;
        font-size: 0.95rem;
    }
}

.content-text::-webkit-scrollbar {
    width: 6px;
}

.content-text::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.content-text::-webkit-scrollbar-thumb {
    background: #c1c8cd;
    border-radius: 3px;
}

.content-text::-webkit-scrollbar-thumb:hover {
    background: #a8b2ba;
}

.content-truncated {
    margin-top: 1rem;
    color: #6c757d;
    font-style: italic;
}

.read-more {
    color: #007bff;
    cursor: pointer;
    font-weight: 600;
}

.read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

.search-highlight {
    background: linear-gradient(120deg, #fff59d 0%, #ffeb3b 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 1px 3px rgba(255, 235, 59, 0.5);
}

.smooth-pagination {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 100px;
}

.nav-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.nav-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.page-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.page-current {
    color: #007bff;
    font-size: 1.2rem;
    font-weight: 700;
}

.page-total {
    color: #6c757d;
}

.pagination-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive design for enhanced search */
@media (max-width: 768px) {
    .enhanced-results-header {
        padding: 1rem;
    }
    
    .results-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .enhanced-ordinance-card {
        padding: 1.5rem;
    }
    
    .ordinance-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ordinance-actions {
        justify-content: center;
    }
    
    .ordinance-meta-enhanced {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .pagination-controls {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        min-width: 80px;
        font-size: 0.9rem;
    }
}

/* ===== FLOATING SEARCH SIDEBAR STYLES ===== */
.floating-search-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 0 0 20px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.floating-search-sidebar.collapsed {
    transform: translateY(-50%) translateX(320px);
}

.sidebar-toggle {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 10px 15px 15px;
    border-radius: 25px 0 0 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    align-items: center;
    gap: 5px;
}

.floating-search-sidebar.collapsed .sidebar-toggle {
    left: -50px;
}

.sidebar-toggle:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: -8px 0 20px rgba(0,0,0,0.3);
}

.toggle-icon {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.toggle-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar-content {
    padding: 20px;
    height: 600px;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.sidebar-header h4 {
    margin: 0;
    font-size: 1.3rem;
    color: white;
}

.close-sidebar {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.sidebar-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.search-input-group input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.search-input-group button {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-input-group button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-filters select {
    padding: 10px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 0.95rem;
}

.sidebar-filters select:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-action-btn, .clear-action-btn, .back-action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.search-action-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.clear-action-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.back-action-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.search-action-btn:hover, .clear-action-btn:hover, .back-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.quick-searches {
    margin-top: 15px;
}

.quick-searches h5 {
    margin: 0 0 10px 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.quick-search-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* Custom scrollbar for sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Ordinance index styling */
.ordinance-index {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Responsive design for sidebar */
@media (max-width: 768px) {
    .floating-search-sidebar {
        width: 300px;
    }
    
    .floating-search-sidebar.collapsed {
        transform: translateY(-50%) translateX(270px);
    }
    
    .sidebar-content {
        padding: 15px;
        height: 500px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .sidebar-actions {
        gap: 8px;
    }
    
    .search-action-btn, .clear-action-btn, .back-action-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Enhanced Legislative Stats Styles */
.official-legislative-stats {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 15px;
    padding: 1.4rem;
    margin-top: 1.2rem;
    border: 2px solid #e3f2fd;
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.08);
    transition: all 0.3s ease;
}

.official-legislative-stats:hover {
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.12);
    transform: translateY(-2px);
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.stats-icon {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.stats-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e3c72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 0.6rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #f0f4ff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e3f2fd;
    transition: background 0.3s ease;
}

.stat-item.highlight {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    box-shadow: 0 6px 16px rgba(42, 82, 152, 0.25);
    border-color: #2a5298;
}

.stat-item.highlight::before {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
}

.stat-item.current-year {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #28a745;
}

.stat-item.current-year::before {
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #2a5298;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.productivity-rank {
    text-align: center;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1e3c72;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1rem;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.productivity-rank:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 215, 0, 0.4);
}

.productivity-rank.top-performer {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    border-color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 6px 16px rgba(255, 107, 107, 0.3);
    }
    to {
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
    }
}

.rank-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.rank-text {
    font-weight: 800;
    font-size: 0.95rem;
}

/* Legislative Summary Styles */
.legislative-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid #e3f2fd;
    box-shadow: 0 8px 24px rgba(42, 82, 152, 0.1);
    margin: 2rem 0;
}

.legislative-summary-card h3 {
    color: #1e3c72;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #f0f4ff;
    transition: all 0.3s ease;
}

.summary-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.summary-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #2a5298;
    margin-bottom: 0.3rem;
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-performers {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid #f0f4ff;
    margin-bottom: 1.5rem;
}

.top-performers h4 {
    color: #1e3c72;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.performers-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f4ff;
    transition: all 0.3s ease;
}

.performer-item:hover {
    background: #f8f9ff;
    transform: translateX(4px);
}

.performer-rank {
    font-weight: 800;
    color: #2a5298;
    font-size: 1.1rem;
    min-width: 25px;
}

.performer-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.performer-stats {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.summary-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.summary-actions .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.summary-actions .btn-primary {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border: none;
    color: white;
}

.summary-actions .btn-primary:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 82, 152, 0.3);
}

.summary-actions .btn-secondary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #666;
}

.summary-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #2a5298;
    color: #2a5298;
    transform: translateY(-2px);
}

/* Responsive Design for Enhanced Cards */
@media (max-width: 768px) {
    .official-card {
        max-width: 350px;
    }
    
    .official-photo {
        height: 280px;
    }
    
    .official-name {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .official-card {
        max-width: 320px;
    }
    
    .official-photo {
        height: 240px;
    }
    
    .official-info {
        padding: 1.5rem 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Enhanced Admin Panel Styles */
.enhanced-admin-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.admin-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.admin-header p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.admin-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27ae60;
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(39, 174, 96, 0.5); }
    50% { box-shadow: 0 0 20px rgba(39, 174, 96, 0.8); }
    100% { box-shadow: 0 0 10px rgba(39, 174, 96, 0.5); }
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.admin-stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.admin-stat-card .stat-details h4 {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.admin-stat-card .stat-details p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.admin-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-tool-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.admin-tool-card:hover {
    transform: translateY(-2px);
}

.admin-tool-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.tool-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-admin {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.admin-recent-activity {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-recent-activity h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.activity-log {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.activity-time {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 500;
}

.activity-desc {
    color: #2c3e50;
}

/* Responsive design for admin panel */
@media (max-width: 768px) {
    .enhanced-admin-panel {
        padding: 1rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* Map Markers and Popups */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-icon {
    font-size: 18px;
    background: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}

.urban-marker .marker-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.rural-marker .marker-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.marker-popup {
    min-width: 250px;
}

.marker-popup h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

.popup-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.popup-badge.urban {
    background: #3498db;
    color: white;
}

.popup-badge.rural {
    background: #27ae60;
    color: white;
}

.marker-popup p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ===== LLA RESEARCH FUNCTIONALITY ===== */

/* Research Container */
.research-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.research-header {
    text-align: center;
    margin-bottom: 30px;
}

.research-header h2 {
    color: var(--primary-color, #1e3a8a);
    font-size: 2rem;
    margin-bottom: 10px;
}

.research-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Research Navigation */
.research-nav {
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e5e5;
}

.research-tabs {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.research-tab-btn {
    background: #f8f9fa;
    border: none;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    top: 2px;
}

.research-tab-btn:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-2px);
}

.research-tab-btn.active {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    top: 0;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

/* Research Content */
.research-content {
    position: relative;
    min-height: 600px;
}

.research-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.research-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview Stats */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.stat-info h3 {
    font-size: 2rem;
    color: #1e3a8a;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.stat-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Framework Overview */
.framework-overview {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e5e5e5;
}

.framework-overview h3 {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.framework-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pillar-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pillar-card[data-pillar="P1"] { border-left-color: #10b981; }
.pillar-card[data-pillar="P2"] { border-left-color: #3b82f6; }
.pillar-card[data-pillar="P3"] { border-left-color: #f59e0b; }
.pillar-card[data-pillar="P4"] { border-left-color: #ef4444; }
.pillar-card[data-pillar="P5"] { border-left-color: #8b5cf6; }

.pillar-card h4 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.pillar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-card li {
    padding: 5px 0;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.pillar-card li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.category-item:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.category-item h4 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 10px;
}

.ordinance-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ordinance-ref {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ordinance-ref:hover {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    transform: scale(1.05);
}

/* Research Tools */
.research-tools {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.research-btn {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.research-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Period Analysis */
.period-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.timeline-section, .research-insights {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.timeline-section h4, .research-insights h4 {
    color: #1e3a8a;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Timeline Chart */
.timeline-chart {
    position: relative;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 35px;
    width: 2px;
    height: 25px;
    background: #e5e5e5;
}

.timeline-marker {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    margin-right: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.timeline-content h5 {
    color: #1e3a8a;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.timeline-content p {
    color: #666;
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.timeline-content .count {
    background: #f3f4f6;
    color: #1e3a8a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Research Insights */
.insight-cards {
    display: grid;
    gap: 15px;
}

.insight-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.insight-card h5 {
    color: #1e3a8a;
    margin: 0 0 8px 0;
    font-size: 1rem;
}

.insight-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Resolution Results Enhanced */
.resolution-result {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.resolution-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.resolution-header {
    padding: 20px 20px 0 20px;
}

.resolution-meta-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.resolution-number-badge {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.resolution-category-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.resolution-category-badge[data-category="P1"] { background: linear-gradient(135deg, #10b981, #34d399); }
.resolution-category-badge[data-category="P2"] { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.resolution-category-badge[data-category="P3"] { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.resolution-category-badge[data-category="P4"] { background: linear-gradient(135deg, #ef4444, #f87171); }
.resolution-category-badge[data-category="P5"] { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.resolution-type-badge {
    background: #f3f4f6;
    color: #1e3a8a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e5e5e5;
}

.resolution-title-enhanced {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 0 20px;
}

.resolution-meta-enhanced {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0 20px;
    margin-bottom: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.meta-label {
    font-weight: 500;
    color: #666;
}

.meta-value {
    color: #333;
}

.resolution-content-section {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
}

.content-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.content-header h4 {
    color: #1e3a8a;
    margin: 0;
    font-size: 1.1rem;
}

.content-actions {
    display: flex;
    gap: 10px;
}

.toggle-content-btn, .copy-content-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-content-btn:hover, .copy-content-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.copy-content-btn {
    background: #10b981;
}

.copy-content-btn:hover {
    background: #059669;
}

.full-content-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
}

/* Search Highlight Enhancement for Resolutions */
.resolution-result .search-highlight {
    background: linear-gradient(120deg, #fff59d 0%, #ffeb3b 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 1px 3px rgba(255, 235, 59, 0.4);
}

/* Ordinance Detail Display System */
.ordinance-ref.clickable {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.ordinance-ref.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border-color: #2563eb;
}

.ordinance-detail-content {
    margin-top: 15px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ordinance-detail-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ordinance-detail-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ordinance-detail-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.close-detail-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-detail-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ordinance-detail-body {
    padding: 20px;
}

.ordinance-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ordinance-year {
    background: #e0f2fe;
    color: #0277bd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ordinance-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.ordinance-status.status-active {
    background: #e8f5e8;
    color: #2e7d2e;
}

.ordinance-status.status-recently-enacted {
    background: #fff3e0;
    color: #e65100;
}

.ordinance-status.status-superseded {
    background: #f3e5f5;
    color: #7b1fa2;
}

.ordinance-title {
    font-size: 1rem;
    color: #1e3a8a;
    margin: 15px 0;
    font-weight: 600;
    line-height: 1.4;
}

.ordinance-content-text {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 20px;
}

.ordinance-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-full-btn {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
}

.view-full-btn:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
}

.copy-btn {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-2px);
}

.related-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.related-btn:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-2px);
}

/* Enhanced ordinance reference hover effects */
.ordinance-ref.clickable::after {
    content: 'Click for details';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.ordinance-ref.clickable:hover::after {
    opacity: 1;
    bottom: -30px;
}

/* Full Text Modal Styles */
.full-text-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 15px;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.ordinance-full-meta {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
}

.meta-value {
    color: #1f2937;
    flex: 1;
}

.meta-value.status-active {
    color: #059669;
    font-weight: 600;
}

.meta-value.status-recently-enacted {
    color: #d97706;
    font-weight: 600;
}

.meta-value.status-superseded {
    color: #7c2d12;
    font-weight: 600;
}

.ordinance-full-title {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.ordinance-full-title h4 {
    margin: 0;
    color: #1e3a8a;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
}

.ordinance-full-content {
    padding: 20px;
}

.ordinance-full-content h5 {
    color: #1e3a8a;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.full-text-content {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.additional-sections {
    margin-top: 25px;
}

.additional-sections h6 {
    color: #1e3a8a;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.additional-content {
    background: #f0f9ff;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e40af;
}

.ordinance-footer {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #6b7280;
}

.ordinance-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    font-style: italic;
}

.modal-actions {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.print-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
}

.print-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    transform: translateY(-2px);
}

.copy-full-btn {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.copy-full-btn:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-2px);
}

.download-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
}

.download-btn:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ordinance-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .ordinance-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .ordinance-detail-body {
        padding: 15px;
    }
    
    .research-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .research-tab-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Modal responsive styles */
    .full-text-modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
        margin: 0;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .meta-label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .overview-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .framework-pillars {
        grid-template-columns: 1fr;
    }
    
    .period-analysis {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .resolution-meta-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resolution-meta-enhanced {
        flex-direction: column;
        gap: 10px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .research-container {
        padding: 15px;
    }
    
    .research-header h2 {
        font-size: 1.5rem;
    }
    
    .research-subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .resolution-title-enhanced {
        font-size: 1.1rem;
    }
}

.special-note {
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 0.5rem;
    text-align: center;
}

/* Enhanced Barangay Cards */
.special-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.barangay-summary-complete {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border: 2px solid #27ae60;
}

.complete-summary h4 {
    color: #27ae60;
    text-align: center;
    margin-bottom: 1rem;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
}

.coordinates {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-family: monospace;
}

/* Resolution LLA Panel Styles */
.resolution-stats-overview {
    margin-bottom: 30px;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.summary-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.summary-icon {
    font-size: 2.5rem;
    margin-right: 15px;
}

.summary-info h4 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.summary-info p {
    margin: 5px 0;
    font-weight: 500;
    font-size: 1.1rem;
}

.summary-info .period {
    font-size: 0.9rem;
    opacity: 0.9;
}

.pillar-resolution-stats {
    margin-bottom: 30px;
}

.pillar-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pillar-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pillar-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pillar-icon {
    font-size: 1.8rem;
    margin-right: 10px;
}

.pillar-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.pillar-numbers {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 15px;
}

.main-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
}

.percentage {
    font-size: 1.2rem;
    font-weight: 600;
    color: #7f8c8d;
}

.pillar-breakdown {
    margin-bottom: 15px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #5a6c7d;
}

.pillar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.pillar-stat-card.p1 {
    border-left: 4px solid #3b82f6;
}

.pillar-stat-card.p2 {
    border-left: 4px solid #10b981;
}

.pillar-stat-card.p3 {
    border-left: 4px solid #f59e0b;
}

.pillar-stat-card.p4 {
    border-left: 4px solid #ef4444;
}

.pillar-stat-card.p5 {
    border-left: 4px solid #8b5cf6;
}

.yearly-comparison {
    margin-bottom: 30px;
}

.comparison-chart {
    display: flex;
    justify-content: space-around;
    align-items: end;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    min-height: 300px;
}

.year-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.year-header {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.year-bars {
    display: flex;
    gap: 4px;
    align-items: end;
    height: 200px;
    margin-bottom: 10px;
}

.bar {
    width: 25px;
    min-height: 20px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: end;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding-bottom: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bar:hover {
    transform: translateY(-2px);
}

.year-total {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    font-size: 0.9rem;
}

.year-total small {
    display: block;
    color: #7f8c8d;
    font-weight: normal;
}

.resolution-insights {
    margin-bottom: 30px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.insight-icon {
    font-size: 2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.insight-content h5 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.insight-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #5a6c7d;
    line-height: 1.5;
}

/* Loading and Resolution Display Styles */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.resolution-summary {
    margin-bottom: 30px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.lla-pillars {
    margin-bottom: 30px;
}

.pillar-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pillar-section.p1 {
    border-left: 4px solid #3b82f6;
}

.pillar-section.p2 {
    border-left: 4px solid #10b981;
}

.pillar-section.p3 {
    border-left: 4px solid #f59e0b;
}

.pillar-section.p4 {
    border-left: 4px solid #ef4444;
}

.pillar-section.p5 {
    border-left: 4px solid #8b5cf6;
}

.pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.pillar-header .pillar-icon {
    font-size: 1.8rem;
    margin-right: 10px;
}

.pillar-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.pillar-count {
    background: #667eea;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.resolution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.resolution-number {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resolution-number:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.resolution-number.clickable {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: #8b5cf6;
    color: #5b21b6;
}

.resolution-number.clickable:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #7c3aed;
    color: white;
}

/* Empty state */
.empty-pillar {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-style: italic;
}

/* Pillar Overview and Enhanced Category Styles */
.pillar-overview {
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.overview-card h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.overview-card p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.emphasis-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emphasis-tag {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Pillar-specific cards and borders */
.p2-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
}

.p3-card {
    background: linear-gradient(135deg, #0891b2, #0f766e) !important;
}

.p4-card {
    background: linear-gradient(135deg, #059669, #16a34a) !important;
}

.p5-card {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.p2-border {
    border-left-color: #4f46e5 !important;
}

.p2-border:hover {
    border-color: #4f46e5 !important;
}

.p3-border {
    border-left-color: #0891b2 !important;
}

.p3-border:hover {
    border-color: #0891b2 !important;
}

.p4-border {
    border-left-color: #059669 !important;
}

.p4-border:hover {
    border-color: #059669 !important;
}

.p5-border {
    border-left-color: #dc2626 !important;
}

.p5-border:hover {
    border-color: #dc2626 !important;
}

.category-description {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.category-description p {
    margin: 0 0 10px 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.subjects-involved {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}

.subjects-involved strong {
    color: #334155;
    font-weight: 600;
}

/* Enhanced category item styling */
.category-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-item h4 {
    color: #1e293b;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Pillar-specific category borders */
#research-P1 .category-item {
    border-left-color: #3b82f6;
}

#research-P2 .category-item {
    border-left-color: #10b981;
}

#research-P3 .category-item {
    border-left-color: #f59e0b;
}

#research-P4 .category-item {
    border-left-color: #ef4444;
}

#research-P5 .category-item {
    border-left-color: #8b5cf6;
}

/* Enhanced ordinance references */
.ordinance-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.ordinance-ref.clickable {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px solid #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ordinance-ref.clickable:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Year indicators for ordinances */
.ordinance-ref.clickable[onclick*="2022"] {
    border-left: 3px solid #06b6d4;
}

.ordinance-ref.clickable[onclick*="2023"] {
    border-left: 3px solid #10b981;
}

.ordinance-ref.clickable[onclick*="2024"] {
    border-left: 3px solid #f59e0b;
}

.ordinance-ref.clickable[onclick*="2025"] {
    border-left: 3px solid #ef4444;
}

/* Responsive design for Resolution LLA */
@media (max-width: 768px) {
    .stats-summary {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .resolution-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
    
    .pillar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pillar-header h5 {
        font-size: 1rem;
    }
    
    .resolution-number {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .emphasis-areas {
        justify-content: center;
    }
    
    .emphasis-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .category-description {
        padding: 12px;
    }
    
    .subjects-involved {
        font-size: 0.85rem;
    }
    
    .ordinance-examples {
        gap: 6px;
    }
    
    .ordinance-ref.clickable {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
}