/**
 * Main Styles
 * Extracted from index.php lines 690-5660
 * Contains search bars, city profile, weather forecast, notification styles,
 * navigation button styles, tooltips, dashboard styles, and more
 */

/* Original Search Bar - Always visible at top */
#mainSearchBar {
    display: block !important;
    position: relative;
    z-index: 1000;
    margin-bottom: 0;
}

/* Floating Search Bar - Shows with results */
#ordinanceStreamlinedSearchBar {
    display: none; /* Hidden initially, shown with results */
    position: relative;
    top: auto;
    z-index: 1000;
    margin-bottom: 10px;
}

/* Enhanced City Profile Styles with Red Text and Blue Shading */
.city-profile-header-enhanced {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.city-profile-title {
    color: #ff0000 !important;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-align: center;
}

/* Weather Forecast Badge with Hover Tooltip */
.weather-forecast-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.weather-forecast-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.forecast-icon {
    font-size: 24px;
}

.forecast-status {
    color: #1e3c72;
    font-weight: 600;
}

/* Tooltip Styles */
.forecast-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 20px;
    width: 350px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.weather-forecast-badge:hover .forecast-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.tooltip-content h4 {
    color: #1e3c72;
    margin: 0 0 15px 0;
    font-size: 18px;
    border-bottom: 2px solid #1e3c72;
    padding-bottom: 10px;
}

#tooltipForecastContent {
    max-height: 200px;
    overflow-y: auto;
}

.forecast-link {
    display: inline-block;
    margin-top: 15px;
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    background: #f0f4ff;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.forecast-link:hover {
    background: #1e3c72;
    color: white;
    transform: translateX(5px);
}

/* Weather Forecast Panel */
.weather-forecast-panel {
    background: linear-gradient(to bottom, #f0f4ff, #ffffff);
    border: 2px solid #2a5298;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(42, 82, 152, 0.15);
}

.forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a5298;
}

.forecast-header h3 {
    color: #1e3c72;
    margin: 0;
    font-size: 1.5em;
}

.forecast-refresh-btn {
    background: #2a5298;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forecast-refresh-btn:hover {
    background: #1e3c72;
    transform: rotate(180deg);
}

.forecast-content {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.forecast-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-fullscreen, .btn-new-window {
    background: #2a5298;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-fullscreen:hover, .btn-new-window:hover {
    background: #1e3c72;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* City Stats Cards Enhanced */
.city-stat-card {
    background: white;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.city-stat-card:hover {
    border-color: #2a5298;
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.2);
    transform: translateY(-5px);
}

.city-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(42, 82, 152, 0.1), transparent);
    transition: left 0.5s ease;
}

.city-stat-card:hover::before {
    left: 100%;
}

.city-stat-card h4 {
    color: #ff0000;
    font-weight: bold;
}

.city-stat-card p {
    color: #1e3c72;
    font-weight: 700;
}

/* Notification Styles - DISABLED: All notifications now display in bottom ticker bar */
.weather-notification {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.weather-notification.alert {
    border-left-color: #ff0000;
}

.weather-notification h4 {
    color: #1e3c72;
    margin: 0 0 10px 0;
}

.weather-notification p {
    color: #333;
    margin: 5px 0;
}

.weather-notification .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.weather-notification .close-btn:hover {
    color: #333;
}

/* Upcoming Forecast Notification with Pulsing Glow */
.weather-notification.upcoming {
    border-left-color: #00a8e8;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(0, 168, 232, 0.3), 0 0 0 0 rgba(0, 168, 232, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(0, 168, 232, 0.5), 0 0 15px 5px rgba(0, 168, 232, 0.2);
    }
}

.weather-notification.upcoming h4 {
    color: #00a8e8;
}

.weather-notification.upcoming .forecast-icon {
    font-size: 28px;
    margin-right: 8px;
}

.weather-notification.upcoming .forecast-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-notification.upcoming .forecast-temp {
    font-size: 1.4em;
    font-weight: 700;
    color: #1e3c72;
}

.weather-notification.upcoming .forecast-condition {
    color: #555;
    font-size: 0.95em;
}

.weather-notification.upcoming .forecast-extra {
    font-size: 0.85em;
    color: #777;
    margin-top: 4px;
}

/* Loading Animation */
.weather-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2a5298;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced City Profile Tab Button Styles - Muted Blue Theme */
.nav-btn[data-tab="profile"] {
    background: linear-gradient(135deg, #3d5a80 0%, #4a90a4 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    overflow: visible !important;
    transition: all 0.25s ease-out !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.nav-btn[data-tab="profile"]:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(74, 144, 164, 0.3) !important;
    background: linear-gradient(135deg, #4a90a4 0%, #5ba3b5 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Weather Icon Badge - animation removed to fix blinking */
.nav-btn[data-tab="profile"]::before {
    content: '🌤️';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 20px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

/* Enhanced Daily Forecast Update Tooltip */
.city-profile-btn-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border: 3px solid;
    border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
    border-radius: 12px;
    padding: 15px;
    width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    pointer-events: none;
}

.nav-btn[data-tab="profile"]:hover .city-profile-btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Tooltip Arrow */
.city-profile-btn-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.1));
}

.city-profile-btn-tooltip h5 {
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

@keyframes shimmerText {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

.city-profile-btn-tooltip .forecast-update-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.city-profile-btn-tooltip .forecast-quick {
    background: linear-gradient(to bottom, #fff5f5, #f0f4ff);
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid rgba(42, 82, 152, 0.2);
}

.city-profile-btn-tooltip .forecast-quick p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-profile-btn-tooltip .forecast-quick strong {
    color: #1e3c72;
    min-width: 80px;
    display: inline-block;
}

.city-profile-btn-tooltip .weather-icon {
    font-size: 18px;
}

.city-profile-btn-tooltip .forecast-action {
    color: #2a5298;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid;
    border-image: linear-gradient(90deg, transparent, #2a5298, transparent) 1;
    font-size: 13px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Active state for City Profile button */
.nav-btn[data-tab="profile"][aria-selected="true"] {
    background: linear-gradient(135deg, #4a90a4 0%, #5ba3b5 100%) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(74, 144, 164, 0.4) !important;
}

/* E-Library Tab Emphasized Styles - UNIFIED Navy-Violet Theme */
.nav-btn.elibrary-emphasized {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 30%, #2d4a6f 50%, #4c1d95 70%, #7c3aed 88%, #9d174d 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(10, 22, 40, 0.5) !important;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 6px -1px rgba(10, 22, 40, 0.15), 0 0 15px rgba(30, 58, 95, 0.2) !important;
    position: relative;
    transition: all 0.25s ease-out !important;
}

.nav-btn.elibrary-emphasized:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px rgba(30, 58, 95, 0.3), 0 0 25px rgba(124, 58, 237, 0.25) !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 30%, #3d5a80 50%, #7c3aed 70%, #a78bfa 88%, #be185d 100%) !important;
    border: 1px solid rgba(124, 58, 237, 0.4) !important;
}

/* Active state for E-Library button */
.nav-btn.elibrary-emphasized[aria-selected="true"] {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 30%, #3d5a80 50%, #7c3aed 70%, #a78bfa 88%, #be185d 100%) !important;
    color: white !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 16px rgba(30, 58, 95, 0.3), 0 0 20px rgba(124, 58, 237, 0.25) !important;
    border: 1px solid rgba(124, 58, 237, 0.5) !important;
}

/* ============================================
   SHARED TOOLTIP PARENT CLASS
   Apply to all buttons that have tooltips
   ============================================ */
.tooltip-parent {
    position: relative;
    overflow: visible !important;
}

/* E-Library Tooltip Styles - Standardized to Traffic Code pattern */
.elibrary-btn-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    background: linear-gradient(135deg, #2d4a6f 0%, #3d5a80 100%);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(45, 74, 111, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99991;
    text-align: left;
    pointer-events: none;
}

/* Single arrow - simple and clean */
.elibrary-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #3d5a80;
}

.nav-btn.elibrary-emphasized:hover .elibrary-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

.elibrary-btn-tooltip h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px 0;
    text-shadow: none;
}

.elibrary-btn-tooltip p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    font-weight: normal;
    text-shadow: none;
}

/* Traffic Code Button - UNIFIED Navy-Violet Theme */
.nav-btn.traffic-regulation-btn {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 30%, #2d4a6f 50%, #4c1d95 70%, #7c3aed 88%, #9d174d 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(10, 22, 40, 0.5) !important;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 6px -1px rgba(10, 22, 40, 0.15), 0 0 15px rgba(30, 58, 95, 0.2) !important;
    position: relative;
    overflow: visible !important;
    transition: all 0.25s ease-out !important;
}

.nav-btn.traffic-regulation-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px rgba(30, 58, 95, 0.3), 0 0 25px rgba(124, 58, 237, 0.25) !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 30%, #3d5a80 50%, #7c3aed 70%, #a78bfa 88%, #be185d 100%) !important;
    border: 1px solid rgba(124, 58, 237, 0.4) !important;
}

.nav-btn.traffic-regulation-btn:hover .traffic-btn-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-5px) !important;
}

.traffic-btn-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99992;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.traffic-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #2563eb;
}

/* Throwback Vibes Music Tab Button - 60% Navy Blue + Amber Theme */
.nav-btn.throwback-btn {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 30%, #2d4a6f 60%, #b45309 80%, #f59e0b 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(10, 22, 40, 0.5) !important;
    border: 1px solid rgba(180, 83, 9, 0.3) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 12px rgba(10, 22, 40, 0.2), 0 0 15px rgba(180, 83, 9, 0.15) !important;
    transition: all 0.25s ease-out !important;
}

.nav-btn.throwback-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px rgba(10, 22, 40, 0.25), 0 0 25px rgba(245, 158, 11, 0.2) !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 30%, #3d5a80 60%, #d97706 80%, #fbbf24 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.nav-btn.throwback-btn[aria-selected="true"] {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 30%, #3d5a80 60%, #d97706 80%, #fbbf24 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 16px rgba(10, 22, 40, 0.3), 0 0 20px rgba(245, 158, 11, 0.25) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
}

/* e-CALENDAR Tab Button Styles - UNIFIED Navy-Violet Theme */
.nav-btn.ecalendar-btn {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 30%, #2d4a6f 50%, #4c1d95 70%, #7c3aed 88%, #9d174d 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 3px rgba(10, 22, 40, 0.5) !important;
    position: relative;
    overflow: visible !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 6px -1px rgba(10, 22, 40, 0.15), 0 0 15px rgba(30, 58, 95, 0.2) !important;
}

.nav-btn.ecalendar-btn:hover {
    transform: translateY(-3px) scale(1.03) !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 30%, #3d5a80 50%, #7c3aed 70%, #a78bfa 88%, #be185d 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 20px 25px -5px rgba(10, 22, 40, 0.25), 0 0 25px rgba(30, 58, 95, 0.35), 0 0 20px rgba(124, 58, 237, 0.3) !important;
    border: 1px solid rgba(167, 139, 250, 0.4) !important;
}

.nav-btn.ecalendar-btn[aria-selected="true"] {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 30%, #2d4a6f 50%, #4c1d95 70%, #7c3aed 88%, #9d174d 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 3px rgba(124, 58, 237, 0.4), 0 0 20px rgba(30, 58, 95, 0.3) !important;
    border: 1px solid rgba(167, 139, 250, 0.5) !important;
}

/* e-CALENDAR Tooltip Styles - Standardized to Traffic Code pattern */
.ecalendar-btn-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: 90vw;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99993;
    text-align: left;
    pointer-events: none;
}

/* Single arrow - simple and clean */
.ecalendar-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #0ea5e9;
}

.nav-btn.ecalendar-btn:hover .ecalendar-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

.ecalendar-btn-tooltip h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: none;
}

.ecalendar-btn-tooltip p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    text-shadow: none;
    font-weight: normal;
}

/* SP News Tab Button Styles - UNIFIED Navy-Violet Theme */
.nav-btn.spnews-btn {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 30%, #2d4a6f 50%, #4c1d95 70%, #7c3aed 88%, #9d174d 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    position: relative;
    border: 1px solid rgba(124, 58, 237, 0.25) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 6px -1px rgba(10, 22, 40, 0.15), 0 0 15px rgba(30, 58, 95, 0.2) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-shadow: 0 1px 3px rgba(10, 22, 40, 0.5);
    overflow: visible !important;
}

.nav-btn.spnews-btn:hover {
    transform: translateY(-3px) scale(1.03) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 20px 25px -5px rgba(10, 22, 40, 0.25), 0 0 25px rgba(30, 58, 95, 0.35), 0 0 20px rgba(124, 58, 237, 0.3) !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 30%, #3d5a80 50%, #7c3aed 70%, #a78bfa 88%, #be185d 100%) !important;
    border: 1px solid rgba(167, 139, 250, 0.4) !important;
}

.nav-btn.spnews-btn[aria-selected="true"] {
    border: 1px solid rgba(167, 139, 250, 0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 3px rgba(124, 58, 237, 0.4), 0 0 20px rgba(30, 58, 95, 0.3) !important;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 30%, #2d4a6f 50%, #4c1d95 70%, #7c3aed 88%, #9d174d 100%) !important;
}

.nav-btn.spnews-btn .spnews-icon {
    margin-right: 6px;
    font-size: 1.2rem;
    display: inline-block;
    transform-origin: center;
}

/* SP News Tooltip - Standardized to Traffic Code pattern */
.spnews-btn-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    max-width: 90vw;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99990;
    text-align: left;
    pointer-events: none;
}

/* Single arrow - simple and clean */
.spnews-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #3b82f6;
}

/* About Pagadian City Button - Prominent Style */
.nav-btn.about-pagadian-btn {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #d4a017 50%, #c41e3a 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
    border: 2px solid rgba(212, 160, 23, 0.5);
    padding: 10px 18px;
    border-radius: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
    transition: all 0.3s ease;
}

.nav-btn.about-pagadian-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.5);
    border-color: rgba(212, 160, 23, 0.8);
}

@keyframes pagadianGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(212, 160, 23, 0.6), 0 0 40px rgba(212, 160, 23, 0.2);
    }
}

.about-pagadian-btn-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2743 100%);
    border: 2px solid rgba(212, 160, 23, 0.4);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-weight: 400;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.about-pagadian-btn-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #1e3a5f;
}

.about-pagadian-btn-tooltip h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #d4a017;
    font-weight: 700;
}

.about-pagadian-btn-tooltip p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.nav-btn.about-pagadian-btn:hover .about-pagadian-btn-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

.nav-btn.spnews-btn:hover .spnews-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

.spnews-btn-tooltip h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.spnews-btn-tooltip p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Additional keyframes */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes pulseGlow {
    0% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.3); }
    50% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.6); }
    100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.3); }
}

@keyframes searchBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
    100% { transform: translateY(0px) scale(1); }
}

/* Portfolio Card Hover Effects */
.portfolio-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25) !important;
}

.portfolio-card a {
    transition: all 0.3s ease !important;
}

.portfolio-card a:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.5) !important;
}

/* Responsive Portfolio Grid */
@media (max-width: 768px) {
    .architectural-portfolio > div:first-child h3 {
        font-size: 24px !important;
    }
    .architectural-portfolio > div:first-child p {
        font-size: 14px !important;
    }
}

/* Responsive 2-Column Search Results Grid */
@media (max-width: 1024px) {
    #fivePillarsResults > div > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    #fivePillarsResults > div > div > div[style*="border-right"] {
        border-right: none !important;
        border-bottom: 2px solid #f0f0f0 !important;
        padding-right: 0 !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
    }
    #fivePillarsResults > div > div > div[style*="padding-left: 20px"] {
        padding-left: 0 !important;
    }
}

.enhanced-search-transfer:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease;
}

#enhancedSearchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6) !important;
}

.search-box-premium:hover {
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1), 0 8px 30px rgba(0,0,0,0.3) !important;
    border: 2px solid rgba(255,255,255,0.5) !important;
}

#enhancedSearchInput:focus {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Search highlighting styles */
.search-highlight, mark.search-highlight {
    background: yellow !important;
    color: #333 !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    border: none;
}

/* NOTE: This file contains only a portion of the main styles due to size.
 * Additional styles continue in the original index.php file.
 */

/* =========================================================================
   Legislative Flow Chart (Legislative Process)
   Fixes "flowchart disarray" by applying consistent layout + styling.
   ========================================================================= */
#legflowchart-tab .legflowchart-content {
    padding: 18px 10px;
}

#legflowchart-tab .flowchart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
    background: linear-gradient(135deg,
        rgba(248, 250, 252, 0.95) 0%,
        rgba(255, 255, 255, 0.95) 55%,
        rgba(239, 246, 255, 0.95) 100%);
    border: 1px solid rgba(30, 58, 95, 0.16);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.10);
    color: #0f172a;
}

#legflowchart-tab .official-header {
    text-align: center;
    padding: 10px 10px 4px;
    margin-bottom: 14px;
    border-bottom: 1px dashed rgba(30, 58, 95, 0.25);
}

#legflowchart-tab .official-header > div {
    text-transform: uppercase;
    letter-spacing: 1px;
}

#legflowchart-tab .official-header .republic-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0a1628;
}

#legflowchart-tab .official-header .city-title,
#legflowchart-tab .official-header .council-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: rgba(10, 22, 40, 0.90);
    margin-top: 2px;
}

#legflowchart-tab .official-header .main-title {
    margin-top: 8px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #1e3a5f;
    letter-spacing: 1.6px;
}

#legflowchart-tab .top-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 22px;
}

#legflowchart-tab .top-box,
#legflowchart-tab .classification-box {
    flex: 1 1 240px;
    min-width: 220px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(30, 58, 95, 0.14);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(10, 22, 40, 0.08);
}

#legflowchart-tab .classification-box {
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.10), rgba(255, 255, 255, 0.95));
    border-color: rgba(124, 58, 237, 0.25);
}

#legflowchart-tab .horizontal-arrow {
    align-self: center;
    font-size: 28px;
    font-weight: 900;
    color: #1e3a5f;
    opacity: 0.9;
    padding: 0 2px;
}

#legflowchart-tab .flow-section {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

#legflowchart-tab .process-column {
    flex: 1 1 320px;
    min-width: 280px;
    max-width: 380px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 16px;
    padding: 12px 12px 16px;
    box-shadow: 0 8px 28px rgba(10, 22, 40, 0.07);
}

#legflowchart-tab .process-header {
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.9px;
    font-size: 0.9rem;
    padding: 10px 12px;
    border-radius: 14px;
    margin: 0 0 12px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 55%, #4c1d95 100%);
}

#legflowchart-tab .resolution-process .process-header,
#legflowchart-tab .resolution-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #7c3aed 100%);
}

#legflowchart-tab .noted-filed .process-header,
#legflowchart-tab .noted-header {
    background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

#legflowchart-tab .archive-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

#legflowchart-tab .process-box,
#legflowchart-tab .decision-box,
#legflowchart-tab .implementation-box {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(30, 58, 95, 0.13);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.35;
    box-shadow: 0 6px 16px rgba(10, 22, 40, 0.06);
}

#legflowchart-tab .decision-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.95) 70%);
    border-color: rgba(245, 158, 11, 0.35);
}

#legflowchart-tab .implementation-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(255, 255, 255, 0.95) 70%);
    border-color: rgba(16, 185, 129, 0.35);
}

#legflowchart-tab .arrow {
    text-align: center;
    margin: 8px 0;
    font-size: 22px;
    font-weight: 900;
    color: rgba(30, 58, 95, 0.95);
}

#legflowchart-tab .mayor-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(30, 58, 95, 0.28);
}

#legflowchart-tab .mayor-decision-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

#legflowchart-tab .mayor-left-path,
#legflowchart-tab .mayor-right-path {
    flex: 1 1 170px;
    min-width: 170px;
}

#legflowchart-tab .veto-options {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

#legflowchart-tab .veto-box {
    flex: 1 1 130px;
    min-width: 130px;
    border-radius: 14px;
    padding: 10px 10px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.25;
    border: 2px solid rgba(30, 58, 95, 0.14);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(10, 22, 40, 0.06);
}

#legflowchart-tab .veto-box.override-success {
    background: rgba(220, 252, 231, 0.85);
    border-color: rgba(22, 163, 74, 0.45);
}

#legflowchart-tab .veto-box.override-fail {
    background: rgba(254, 226, 226, 0.85);
    border-color: rgba(220, 38, 38, 0.45);
}

@media (max-width: 720px) {
    #legflowchart-tab .flowchart-container {
        padding: 14px;
    }
    #legflowchart-tab .top-flow {
        flex-direction: column;
        align-items: center;
    }
    #legflowchart-tab .horizontal-arrow {
        display: none;
    }
    #legflowchart-tab .process-column {
        max-width: 520px;
        width: 100%;
    }
}
