@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #2C3E50;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.hamburger {
    width: 50px;
    height: 50px;
    background: #4A78D3;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger.active {
    gap: 8px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.navbar {
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    border-radius: 10px;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    min-width: 200px;
}

.navbar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    margin: 0;
}

.navbar li a {
    color: #2C3E50;
    text-decoration: none;
    padding: 12px 25px;
    display: block;
    transition: all 0.2s ease;
    font-weight: 500;
}

.navbar li a:hover {
    background: var(--hover-bg);
    color: var(--primary-start);
}

.navbar li a.active {
    background: #4A78D3;
    color: white;
}

/* Adjust container margin to account for fixed nav */
.container {
    margin-top: 80px;
    padding: 20px;
}

/* Media queries for larger screens */
@media screen and (min-width: 1024px) {
    .nav-container {
        left: 40px;
    }

    .navbar {
        min-width: 250px;
    }
}

/* Media queries for smaller screens */
@media screen and (max-width: 768px) {
    .nav-container {
        top: 10px;
        left: 10px;
    }

    .hamburger {
        width: 45px;
        height: 45px;
    }

    .navbar {
        width: calc(100vw - 20px);
        left: -10px;
    }

    .container {
        margin-top: 60px;
    }
}

/* Contact page styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 20px auto;
    background-color: #F5F8FE;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.contact-label {
    font-weight: 600;
    width: 40%;
    color: #2C3E50;
}

.contact-details {
    width: 60%;
    line-height: 1.5;
}

.contact-details p {
    margin: 5px 0;
}

.contact-details a {
    color: #2962FF;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
    color: #1A237E;
}

hr {
    border: none;
    height: 1px;
    background-color: #7FA4E0;
    margin: 20px 0;
}

h1 {
    text-align: center;
    color: #2C3E50;
    font-weight: 700;
    margin-bottom: 1em;
}

@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
    }
    
    .contact-label, .contact-details {
        width: 100%;
    }
}

/* Footer styles */
.footer {
    background-color: #2C3E50;
    color: white;
    padding: 40px 0 20px 0;
    margin-top: 40px;
    margin-left: 220px;
    transition: margin-left 0.8s ease;
    flex-shrink: 0;
}

.sidebar.collapsed ~ .footer {
    margin-left: 56px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #9EBEF5;
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: #E0E0E0;
    line-height: 1.5;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    color: #E0E0E0;
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #4A5B70;
}

.footer-bottom p {
    color: #9EBEF5;
    font-size: 0.9em;
    margin: 0;
}

.footer-bottom p:not(:last-child) {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: #9EBEF5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Responsive adjustments for footer */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        padding: 0 20px;
    }

    .footer-section ul li {
        margin-bottom: 10px;
    }
}

/* Intro sections styles */
.intro-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.intro-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
    background-color: #F5F8FE;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-section.reverse {
    flex-direction: row-reverse;
}

.section-content {
    flex: 1;
}

.section-image {
    flex: 1;
    max-width: 500px;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.intro-section h2 {
    color: #2C3E50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.intro-section p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.intro-section ul {
    list-style-type: none;
    padding: 0;
}

.intro-section ul li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.intro-section ul li:before {
    content: "•";
    color: #4A78D3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .intro-section,
    .intro-section.reverse {
        flex-direction: column;
        padding: 20px;
    }

    .section-image {
        order: -1;
        max-width: 100%;
    }
}

/* Add these media queries at the bottom of your CSS file */
@media screen and (max-width: 1024px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .intro-section {
        margin: 40px 20px;
    }
}

@media screen and (max-width: 768px) {
    /* Navbar mobile styling */
    .navbar ul {
        display: flex;
        flex-direction: column;
    }

    .navbar li {
        float: none;
        width: 100%;
    }

    .navbar li a {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    /* Contact page mobile styling */
    .contact-info {
        margin: 20px;
    }

    .contact-item {
        flex-direction: column;
    }

    .contact-label, 
    .contact-details {
        width: 100%;
    }

    /* Intro sections mobile styling */
    .intro-section,
    .intro-section.reverse {
        flex-direction: column;
        gap: 20px;
        margin: 30px 15px;
    }

    .section-content,
    .section-image {
        width: 100%;
    }

    .section-image img {
        max-height: 300px;
        object-fit: cover;
    }

    /* Footer mobile styling */
    .partner-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-item {
        margin: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    /* Container spacing */
    .container {
        padding: 10px;
    }

    /* Typography adjustments */
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    /* Tighter spacing for mobile */
    .intro-section {
        padding: 15px;
    }

    .contact-info {
        padding: 15px;
    }

    /* Partner logos size adjustment */
    .partner-item img {
        max-width: 120px;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    body {
        min-height: -webkit-fill-available;
    }
}

/* Ensure smooth transitions */
@media screen and (prefers-reduced-motion: no-preference) {
    * {
        transition: all 0.3s ease;
    }
}

/* Print styles */
@media print {
    .navbar {
        display: none;
    }

    .footer {
        position: fixed;
        bottom: 0;
    }

    .intro-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Scenarios page styles */
.scenarios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.intro-text {
    background-color: #F5F8FE;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step h2 {
    color: #2C3E50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.scenario-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #7FA4E0;
    border-radius: 6px;
    font-size: 1em;
    margin-top: 10px;
    background-color: white;
    color: #2C3E50;
}

.scenario-select:focus {
    outline: none;
    border-color: #4A78D3;
}

.result-step {
    background-color: #F5F8FE;
    border: 2px solid #7FA4E0;
}

.scenario-result {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #2C3E50;
}

.decision-tables {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.decision-table {
	margin: 20px 0;
	background: #ffffff;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border: 1px solid rgba(42, 123, 155, 0.1);
}

.decision-table h3 {
	margin: 0 0 12px 0;
	color: var(--text-dark, #2C3E50);
}

.decision-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #e3eaf6;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.decision-table thead th {
	background: var(--gradient, linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(34, 143, 139, 1) 50%, rgba(0, 176, 212, 1) 100%));
	color: var(--text-light, #ffffff);
	font-weight: 700;
	text-align: center;
	border-right: 1px solid rgba(255,255,255,0.25);
}

.decision-table th,
.decision-table td {
	padding: 12px;
	text-align: center;
	vertical-align: middle;
	border-right: 1px solid #e3eaf6;
	border-bottom: 1px solid #e3eaf6;
}

.decision-table th:last-child,
.decision-table td:last-child {
	border-right: none;
}

/* Zebra striping for better row distinction (only result columns) */
.decision-table tbody tr:nth-child(even) td:not(:nth-child(-n+2)) {
	background-color: #f8fbff;
}

/* Subtle background for descriptor columns to distinguish columns */
.decision-table tbody td:first-child {
	background-color: rgba(42, 123, 155, 0.06);
	font-weight: 600;
}

.decision-table tbody td:nth-child(2) {
	background-color: rgba(42, 123, 155, 0.03);
	font-weight: 500;
}

/* Hover highlight */
.decision-table tbody tr:hover td {
	background-color: rgba(42, 123, 155, 0.08);
}

.table-container {
    margin: 20px 0;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-container h3 {
    color: #2C3E50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.table-container img {
    width: 80%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .scenarios-container {
        padding: 10px;
    }

    .step {
        padding: 15px;
    }

    .scenario-select {
        padding: 10px;
    }

    .table-container img {
        width: 100%;
    }
    
    .table-container {
        padding: 10px;
    }
}

.submit-button {
    background-color: #4A78D3;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #3567C2;
}

.evaluation-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.parameters-table {
    background-color: #F5F8FE;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.parameters-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.parameters-table th,
.parameters-table td {
    padding: 12px;
    border-bottom: 1px solid #7FA4E0;
    text-align: left;
}

.parameters-table th {
    background-color: #7FA4E0;
    color: white;
}

.result-message {
    background-color: #E3EEFF;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.2em;
    color: #2C3E50;
    border: 2px solid #7FA4E0;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #7FA4E0;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 20px;
}

.back-button:hover {
    background-color: #4A78D3;
}

.error-message {
    color: #D32F2F;
    font-weight: bold;
}

/* Floods page styles */
.floods-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.q-selector {
    background-color: #F5F8FE;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.q-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2C3E50;
}

.maps-container {
    margin-top: 30px;
}

.no-selection-message {
    text-align: center;
    padding: 40px;
    background-color: #F5F8FE;
    border-radius: 8px;
    color: #2C3E50;
    font-style: italic;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.map-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-card h3 {
    color: #2C3E50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.map-card p {
    color: #666;
    margin-bottom: 15px;
    min-height: 40px;
}

.map-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4A78D3;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.map-link:hover {
    background-color: #3567C2;
}

.map-viewer-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-bg);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 5px;
}

.map-viewer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 123, 155, 0.3);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .map-grid {
        grid-template-columns: 1fr;
    }

    .map-card p {
        min-height: auto;
    }
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #fff;
    border-right: 1.5px solid #e0e0e0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
    transition: width 0.8s ease, min-width 0.8s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 10px 18px;
    border-bottom: 1px solid #e0e0e0;
}

.site-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2C3E50;
    letter-spacing: 1px;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

.sidebar-toggle img {
    width: 24px;
    height: 24px;
    transition: opacity 0.8s ease;
}

.icon-close,
.icon-open {
    position: absolute;
}

.icon-open {
    opacity: 0;
}

.sidebar.collapsed .icon-open {
    opacity: 1;
}

.sidebar.collapsed .icon-close {
    opacity: 0;
}

.icon-close {
    opacity: 1;
}

/* Remove old icon styles */
.icon-menu-dots,
.icon-angle-left {
    display: none;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.sidebar-nav li {
    width: 100%;
}

.sidebar-nav a {
    display: block;
    padding: 12px 32px;
    color: #2C3E50;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 0 20px 20px 0;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a.active, .sidebar-nav a:hover {
    background: var(--hover-bg);
    color: var(--primary-start);
}

/* Collapsed sidebar */
.sidebar.collapsed {
    width: 56px;
    min-width: 56px;
    transition: width 0.3s ease, min-width 0.3s ease;
}
.sidebar.collapsed .site-title,
.sidebar.collapsed .sidebar-nav a {
    display: none;
}
.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

/* Main content with sidebar */
.container.with-sidebar {
    flex: 1 0 auto;
    margin-left: 220px;
    transition: margin-left 0.8s ease;
    padding: 30px 30px 0 30px;
    min-height: 0;
}
.sidebar.collapsed ~ .container.with-sidebar {
    margin-left: 56px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .sidebar {
        width: 170px;
    }
    .container.with-sidebar {
        margin-left: 170px;
        padding: 20px 10px 0 10px;
    }
    .sidebar.collapsed {
        width: 48px;
        min-width: 48px;
    }
    .sidebar.collapsed ~ .container.with-sidebar {
        margin-left: 48px;
    }
    .footer {
        margin-left: 170px;
    }
    .sidebar.collapsed ~ .footer {
        margin-left: 48px;
    }
}
@media (max-width: 600px) {
    .sidebar {
        width: 100vw;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1.5px solid #e0e0e0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        flex-direction: row;
        align-items: center;
        min-width: unset;
    }
    .sidebar-header {
        flex: 1;
        padding: 10px 10px 10px 16px;
        border-bottom: none;
    }
    .sidebar-nav {
        flex-direction: row;
        gap: 0;
        margin: 0;
        margin-left: 10px;
    }
    .sidebar-nav li {
        width: auto;
    }
    .sidebar-nav a {
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 1em;
    }
    .sidebar.collapsed {
        width: 56px;
        min-width: 56px;
    }
    .sidebar.collapsed .sidebar-nav {
        display: none;
    }
    .container.with-sidebar {
        margin-left: 0;
        padding: 10px 5px 0 5px;
    }
    .footer {
        margin-left: 0;
    }
    .sidebar.collapsed ~ .footer {
        margin-left: 0;
    }
}

/* Remove old navbar/hamburger styles if present */
.navbar, .nav-container, .hamburger { display: none !important; }

/* Color variables for the new theme */
:root {
    --primary-start: rgba(42, 123, 155, 1);
    --primary-middle: rgba(34, 143, 139, 1);
    --primary-end: rgba(0, 176, 212, 1);
    --primary-bg: #2A7B9B;
    --gradient: linear-gradient(90deg, var(--primary-start) 0%, var(--primary-middle) 50%, var(--primary-end) 100%);
    --text-dark: #1a4d62;
    --text-light: #ffffff;
    --hover-bg: rgba(42, 123, 155, 0.1);
}

/* Update sidebar styles */
.sidebar-nav a.active, .sidebar-nav a:hover {
    background: var(--hover-bg);
    color: var(--primary-start);
}

/* Update footer styles */
.footer {
    background: var(--gradient);
    color: var(--text-light);
}

.footer-section h3 {
    color: #ffffff;
}

.footer-section p, .footer-section ul li {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
}

/* Update button styles */
.submit-button {
    background: var(--gradient);
    color: var(--text-light);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
    background: var(--gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 123, 155, 0.3);
}

/* Update link colors */
a {
    color: var(--primary-start);
}

a:hover {
    color: var(--primary-middle);
}

/* Update table styles */
.parameters-table th {
    background: var(--gradient);
    color: var(--text-light);
}

/* Update card and container backgrounds */
.intro-section, .step, .parameters-table, .q-selector {
    border: 1px solid rgba(42, 123, 155, 0.1);
}

.map-link {
    background: var(--gradient);
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 123, 155, 0.3);
}

/* Update headings color */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

/* Update site title */
.site-title {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    text-align: center;
}

.mobile-nav-item {
    display: inline-block;
    padding: 8px 15px;
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    margin: 0 5px;
}

.mobile-nav-item.active {
    background: var(--primary-color, #4A78D3);
    color: white;
}

.mobile-nav-item:hover:not(.active) {
    background: #F5F8FE;
}

/* Responsive Design */
@media (max-width: 900px) {
    .mobile-nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .sidebar {
        display: none;
    }

    .container.with-sidebar {
        margin-left: 0;
        margin-top: 60px;
        padding: 20px;
    }

    .footer {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .mobile-nav {
        padding: 5px;
    }

    .mobile-nav-item {
        padding: 6px 10px;
        font-size: 14px;
    }

    .container.with-sidebar {
        margin-top: 50px;
        padding: 15px;
    }
}

.map-viewer-container {
    padding: 20px;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.map-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.map-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-btn {
    padding: 8px 16px;
    background: var(--primary-start);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background: var(--primary-middle);
}

.back-btn {
    padding: 8px 16px;
    background: var(--text-dark);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background: var(--primary-middle);
}

.map-viewer-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f5f5f5;
}

.map-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
}

#mapImage {
    max-width: 100%;
    height: auto;
    transform-origin: center;
    transition: transform 0.1s ease-out;
    user-select: none;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-type-selector {
    margin-top: -10px;
}

.type-select {
    padding: 8px 12px;
    border: 2px solid var(--primary-start);
    border-radius: 4px;
    font-size: 1em;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    min-width: 200px;
}

.type-select:focus {
    outline: none;
    border-color: var(--primary-middle);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2A7B9B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: #2C3E50;
    font-weight: 600;
    margin: 0;
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 220px;
    border: 1px solid #e9ecef;
    backdrop-filter: blur(10px);
}

.map-legend h3 {
    margin: 0 0 12px 0;
    color: #2A7B9B;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-current-map {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    padding: 10px;
    background: linear-gradient(135deg, #F5F8FE, #e3f2fd);
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e3f2fd;
}

.legend-items {
    margin: 12px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

.legend-color {
    width: 24px;
    height: 16px;
    margin-right: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.legend-item span {
    font-size: 12px;
    color: #2C3E50;
    font-weight: 500;
}

.legend-stats {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.legend-stats div {
    margin-bottom: 4px;
    padding: 2px 0;
}

/* ===== MAP VIEWER RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .map-sidebar {
        width: 280px;
    }
    
    .map-layout {
        height: calc(100vh - 320px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .map-layout {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    .map-sidebar {
        width: 100%;
        max-height: 400px;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .map-main {
        height: 60vh;
        min-height: 400px;
    }
    
    .zoom-controls {
        justify-content: space-between;
    }
    
    .nav-buttons {
        flex-direction: row;
    }
    
    .map-viewer-heading {
        height: 200px;
    }
    
    /* Mobile checkbox adjustments */
    .checkbox-item {
        padding: 10px 12px;
    }
    
    .checkbox-item label {
        font-size: 13px;
    }
    
    .legend-item {
        padding: 8px;
    }
    
    .legend-item span {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .map-sidebar {
        padding: 15px;
    }
    
    .control-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .nav-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .toggle-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Small mobile checkbox adjustments */
    .checkbox-item {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .checkbox-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
    
    .checkbox-item label {
        font-size: 12px;
    }
    
    .legend-item {
        padding: 6px;
        gap: 8px;
    }
    
    .legend-color {
        width: 16px;
        height: 12px;
    }
    
    .legend-item span {
        font-size: 11px;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2A7B9B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: #2C3E50;
    font-weight: 600;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-viewer-header {
        flex-direction: column;
        gap: 15px;
    }

    .header-left {
        width: 100%;
    }

    .type-select {
        width: 100%;
        max-width: none;
    }

    .map-controls {
        width: 100%;
        justify-content: center;
    }
}

.main-heading {
    position: relative;
    height: 500px;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(42, 123, 155, 0.85) 0%,
        rgba(34, 143, 139, 0.85) 50%,
        rgba(0, 176, 212, 0.85) 100%
    );
    z-index: 2;
}

.heading-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2rem;
    text-align: center;
}

.heading-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.main-heading h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.main-heading h1:first-of-type {
    margin-bottom: 0.5rem;
}

.main-heading h2 {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 500;
    margin-top: 1rem;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.main-heading h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

.main-heading:hover .header-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .main-heading {
        height: 400px;
    }

    .heading-text {
        padding: 1.5rem;
    }

    .main-heading h1 {
        font-size: 2rem;
    }

    .main-heading h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .main-heading {
        height: 350px;
    }

    .heading-text {
        padding: 1rem;
    }

    .main-heading h1 {
        font-size: 1.6rem;
    }

    .main-heading h2 {
        font-size: 1.2rem;
    }
}

.q-value-link {
    color: var(--primary-start);
    text-decoration: none;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(42, 123, 155, 0.1);
    transition: all 0.3s ease;
}

.q-value-link:hover {
    background-color: var(--primary-start);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(42, 123, 155, 0.2);
}

/* Update button and interactive element colors */
.submit-button,
.map-link,
.control-btn {
    background: var(--gradient);
    color: var(--text-light);
}

.submit-button:hover,
.map-link:hover,
.control-btn:hover {
    background: var(--primary-bg);
}

/* Update active states */
.navbar li a.active,
.mobile-nav-item.active {
    background: var(--gradient);
}

/* Update accent colors */
.parameters-table th {
    background: var(--gradient);
}

.back-button {
    background-color: var(--primary-bg);
}

.back-button:hover {
    background: var(--gradient);
}

.info-link-container {
    text-align: center;
    margin: -10px 0 20px 0;
}

.info-link {
    color: var(--primary-start);
    text-decoration: none;
    font-size: 1.1em;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.info-link:hover {
    background: var(--hover-bg);
    color: var(--primary-start);
}

.floods-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.floods-detail-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.floods-detail-content p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.floods-detail-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.floods-detail-content li {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-dark);
}

.floods-detail-content sub {
    font-size: 0.8em;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.info-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 123, 155, 0.3);
}

.floods-detail-content h2 {
    color: var(--primary-start);
    margin: 30px 0 15px 0;
    font-size: 1.5em;
}

.floods-detail-content ul {
    margin: 20px 0;
}

.floods-detail-content li {
    margin-bottom: 15px;
}

.floods-detail-content strong {
    color: var(--primary-start);
}

/* ===== MAP VIEWER STYLES ===== */

/* Map Viewer Layout */
.map-viewer-heading {
    height: 250px;
}

.map-layout {
    display: flex;
    min-height: 80vh;
    max-height: none;
    gap: 0;
}

/* Left Sidebar Styles */
.map-sidebar {
    width: 350px;
    min-width: 350px;
    background: white;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    max-height: 80vh;
}

.sidebar-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2A7B9B;
}

.sidebar-header h3 {
    margin: 0;
    color: #2A7B9B;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-section {
    margin-bottom: 25px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.control-section h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-section h4 i {
    color: #2A7B9B;
    width: 16px;
}

.control-group {
    margin-bottom: 10px;
}

/* Map Checkboxes Styles */
.map-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: #e9ecef;
    border-color: #2A7B9B;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2A7B9B;
    cursor: pointer;
}

.checkbox-item label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    margin: 0;
}

.checkbox-item label::before {
    content: '';
}

/* Layer order indicator styling */
.checkbox-item label[data-layer-order]::before {
    content: attr(data-layer-order);
    display: inline-block;
    background: linear-gradient(135deg, #2A7B9B, #1e6b8c);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 8px;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.menu-dots-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-dots-btn:hover {
    background-color: #e9ecef;
}

.menu-dots-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.menu-dots-btn:hover .menu-dots-icon {
    opacity: 1;
}

.individual-opacity-control {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #495057;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.individual-opacity-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.individual-opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2A7B9B;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.individual-opacity-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2A7B9B;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.individual-opacity-value {
    min-width: 35px;
    text-align: center;
    font-weight: 600;
    color: #2A7B9B;
    font-size: 12px;
}

.loading-text, .error-text {
    text-align: center;
    padding: 15px;
    font-style: italic;
    color: #6c757d;
}

.error-text {
    color: #dc3545;
}

/* Color Legend Styles */
.color-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.legend-color {
    width: 20px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.legend-item span {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
}

.modern-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #495057;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-select:focus {
    outline: none;
    border-color: #2A7B9B;
    box-shadow: 0 0 0 3px rgba(42, 123, 155, 0.1);
}

.modern-select:hover {
    border-color: #6c757d;
}

/* Zoom Controls */
.zoom-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: white;
}

.zoom-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.zoom-in {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.zoom-in:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
}

.zoom-reset {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.zoom-reset:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
}

.zoom-out {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.zoom-out:hover {
    background: linear-gradient(135deg, #c82333, #dc2626);
    transform: translateY(-2px);
}

/* Overlay Controls (OSM Map) */
.overlay-controls {
    display: flex;
    justify-content: center;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.toggle-btn:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.toggle-btn.active:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
}

.toggle-btn.active i {
    transform: rotate(180deg);
}

/* Opacity Controls */
.opacity-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opacity-slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.opacity-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2A7B9B;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.opacity-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2A7B9B;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.opacity-value {
    min-width: 40px;
    text-align: center;
}

.opacity-value span {
    font-weight: 600;
    color: #2A7B9B;
    font-size: 14px;
}

/* Help Content */
.help-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #495057;
}

.help-item i {
    color: #2A7B9B;
    width: 16px;
    text-align: center;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.back-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

.back-btn:hover {
    background: linear-gradient(135deg, #5a6268, #343a40);
    transform: translateY(-2px);
    color: white;
}

.osm-btn {
    background: linear-gradient(135deg, #2A7B9B, #1e6b8c);
    color: white;
}

.osm-btn:hover {
    background: linear-gradient(135deg, #1e6b8c, #155a75);
    transform: translateY(-2px);
    color: white;
}

.pdf-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.pdf-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    color: white;
}

/* Main Map Area */
.map-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    position: relative;
    min-height: 80vh;
}

.map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: grab;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container:active {
    cursor: grabbing;
}

.osm-map-container {
    flex: 1;
    position: relative;
    background: #f8f9fa;
    min-height: 80vh;
}

#mapImage {
    max-width: none;
    max-height: none;
    transition: transform 0.1s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.no-map-selected {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-selection-message {
    text-align: center;
    color: #6c757d;
    padding: 40px;
}

.no-selection-message i {
    font-size: 48px;
    color: #2A7B9B;
    margin-bottom: 20px;
}

.no-selection-message h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.no-selection-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile checkbox adjustments */
.checkbox-item {
    padding: 10px 12px;
}

.checkbox-item label {
    font-size: 13px;
}

.menu-dots-icon {
    width: 14px;
    height: 14px;
}

.individual-opacity-control {
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
}

.individual-opacity-value {
    font-size: 11px;
    min-width: 30px;
}

.legend-item {
    padding: 8px;
}

.legend-item span {
    font-size: 12px;
}

/* Flood Overlay Stability CSS */
.flood-overlay {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Let JavaScript handle transitions to avoid conflicts */
}

.flood-overlay img {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Let JavaScript handle transitions to avoid conflicts */
}

/* Leaflet overlay positioning fixes */
.leaflet-image-layer {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Let JavaScript control transitions during zoom */
.leaflet-zoom-animated .leaflet-image-layer {
    /* Transitions will be controlled by JavaScript */
}

.leaflet-zoom-anim .leaflet-image-layer {
    /* Transitions will be controlled by JavaScript */
}

/* Fullscreen functionality styles */
.fullscreen-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.fullscreen-btn:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    color: white;
}

.exit-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.exit-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.fullscreen-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: white !important;
}

/* Responsive adjustments for larger maps */
@media (max-width: 1200px) {
    .map-layout {
        min-height: 70vh;
    }
    
    .map-sidebar {
        width: 320px;
        min-width: 320px;
        max-height: 70vh;
    }
    
    .map-main,
    .osm-map-container {
        min-height: 70vh;
    }
}

@media (max-width: 768px) {
    .map-layout {
        flex-direction: column;
        min-height: 90vh;
    }
    
    .map-sidebar {
        width: 100%;
        min-width: auto;
        max-height: 40vh;
        order: 2;
    }
    
    .map-main {
        order: 1;
        min-height: 50vh;
    }
    
    .osm-map-container {
        min-height: 50vh;
    }
}

/* Admin Status Footer */
.admin-status-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 215, 0, 0.1);
    text-align: center;
}

.admin-status-footer .admin-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.9);
    color: #2C3E50;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed .admin-status-footer {
    padding: 8px 5px;
}

.sidebar.collapsed .admin-status-footer .admin-badge {
    font-size: 0.6rem;
    padding: 2px 4px;
}
