/* Global Styles */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background: #2b5876;
    /* Fallback theme color */
}

.no-transition {
    transition: none !important;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Add a pseudo-element for bubbles if desired in future, or use an image if available */
/* Bubbles Container */
/* Bubbles Container */
.bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* Lower z-index to stay behind book */
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 15px;
    /* Default smaller size */
    height: 15px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1) 60%, transparent 80%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    animation: rise 10s infinite ease-in;
    opacity: 0.6;
}

.bubble:nth-child(1) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    left: 20%;
    width: 10px;
    height: 10px;
    animation-duration: 5s;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    left: 35%;
    width: 15px;
    height: 15px;
    animation-duration: 10s;
    animation-delay: 4s;
}

.bubble:nth-child(4) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-duration: 7s;
    animation-delay: 2s;
}

.bubble:nth-child(5) {
    left: 65%;
    width: 12px;
    height: 12px;
    animation-duration: 6s;
    animation-delay: 3s;
}

.bubble:nth-child(6) {
    left: 80%;
    width: 18px;
    height: 18px;
    animation-duration: 9s;
    animation-delay: 5s;
}

.bubble:nth-child(7) {
    left: 90%;
    width: 8px;
    height: 8px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble:nth-child(8) {
    left: 25%;
    width: 14px;
    height: 14px;
    animation-duration: 15s;
    animation-delay: 0s;
}

.bubble:nth-child(9) {
    left: 45%;
    width: 10px;
    height: 10px;
    animation-duration: 8s;
    animation-delay: 1s;
}

.bubble:nth-child(10) {
    left: 75%;
    width: 22px;
    height: 22px;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

/* Extra Bubbles */
.bubble:nth-child(11) {
    left: 5%;
    width: 12px;
    height: 12px;
    animation-duration: 13s;
    animation-delay: 1s;
}

.bubble:nth-child(12) {
    left: 15%;
    width: 18px;
    height: 18px;
    animation-duration: 9s;
    animation-delay: 3s;
}

.bubble:nth-child(13) {
    left: 30%;
    width: 10px;
    height: 10px;
    animation-duration: 15s;
    animation-delay: 5s;
}

.bubble:nth-child(14) {
    left: 40%;
    width: 25px;
    height: 25px;
    animation-duration: 18s;
    animation-delay: 0s;
}

.bubble:nth-child(15) {
    left: 55%;
    width: 14px;
    height: 14px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.bubble:nth-child(16) {
    left: 60%;
    width: 20px;
    height: 20px;
    animation-duration: 12s;
    animation-delay: 4s;
}

.bubble:nth-child(17) {
    left: 70%;
    width: 16px;
    height: 16px;
    animation-duration: 8s;
    animation-delay: 6s;
}

.bubble:nth-child(18) {
    left: 85%;
    width: 9px;
    height: 9px;
    animation-duration: 14s;
    animation-delay: 1s;
}

.bubble:nth-child(19) {
    left: 95%;
    width: 22px;
    height: 22px;
    animation-duration: 11s;
    animation-delay: 3s;
}

.bubble:nth-child(20) {
    left: 2%;
    width: 15px;
    height: 15px;
    animation-duration: 16s;
    animation-delay: 5s;
}

.bubble:nth-child(21) {
    left: 22%;
    width: 11px;
    height: 11px;
    animation-duration: 19s;
    animation-delay: 0s;
}

.bubble:nth-child(22) {
    left: 38%;
    width: 19px;
    height: 19px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.bubble:nth-child(23) {
    left: 48%;
    width: 13px;
    height: 13px;
    animation-duration: 13s;
    animation-delay: 4s;
}

.bubble:nth-child(24) {
    left: 68%;
    width: 24px;
    height: 24px;
    animation-duration: 9s;
    animation-delay: 1.5s;
}

.bubble:nth-child(25) {
    left: 92%;
    width: 8px;
    height: 8px;
    animation-duration: 17s;
    animation-delay: 3.5s;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }

    100% {
        bottom: 110%;
        transform: translateX(-30px);
    }
}

/* Top Bar Styling */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    /* Match bottom toolbar styles */
    background: rgba(45, 125, 154, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-section .top-logo {
    max-height: 80px;
}

.search-section .search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 5px 10px;
}

.search-section input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    padding: 5px;
    font-size: 14px;
}

.search-section input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-section button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Main Content Area */
.main-content {
    position: absolute;
    top: 60px;
    /* Below top bar */
    bottom: 50px;
    /* Above bottom bar */
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Background Image for Main Section with Dark Overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/bg-1.png') no-repeat center center;
    background-size: cover;
}

#book-container {
    padding: 0;
    /* Removed extra margin as requested */
    z-index: 100;
    position: relative;
    transform: scaleY(-1);
    /* Flip vertically to change turn direction to Top-to-Bottom */
    touch-action: pan-y;
    /* Allow scroll, block horizontal for swipe */
}

#book {
    box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.7);
    /* Negative Y to account for container flip */
    transition: transform 1.5s ease-in-out;
    /* Slower smooth transition */
    border: 12px solid #3E2723;
    /* Uniform dark brown/bronze similar to screenshot */
    border-radius: 4px;
    /* Sharper corners */
    background-color: #3E2723;
}

/* Inner shadow to create depth towards the spine - Corrected Directions for Fold Effect */
.even .page {
    border-style: solid;
    border-color: #3E2723;
    /* Match cover color */
    border-width: 10px 0 10px 10px;
    /* Top, Spine(0), Bottom, Outer(10) */

    /* Gradient: White (Outer) -> Dark fold (Spine/Right) */
    background: linear-gradient(to right,
            rgba(255, 255, 255, 1) 85%,
            rgba(220, 220, 220, 1) 95%,
            rgba(50, 50, 50, 0.3) 100%);

    /* Slight inset shadow on the outer (Left) edge for stack depth */
    box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.1);
}

.odd .page {
    border-style: solid;
    border-color: #3E2723;
    /* Match cover color */
    border-width: 10px 10px 10px 0;
    /* Top, Outer(10), Bottom, Spine(0) */

    /* Gradient: Dark fold (Spine/Left) -> White (Outer) */
    background: linear-gradient(to right,
            rgba(50, 50, 50, 0.3) 0%,
            rgba(220, 220, 220, 1) 5%,
            rgba(255, 255, 255, 1) 15%);

    /* Slight inset shadow on the outer (Right) edge for stack depth */
    box-shadow: inset -4px 0 8px rgba(0, 0, 0, 0.1);
}

/* Hide background when showing cover to avoid brown box on left */
#book.centered-cover {
    background-color: transparent !important;
    border-color: transparent !important;
    /* Hide outer border too? Logic: Page 1 image likely has border or fills it. */
    box-shadow: none !important;
    /* Remove box shadow from container, rely on page shadow */
}

/* Re-apply styling to the actual page 1 if needed, or assume page image covers it. 
   Actually, turn.js .page wrapper handles content. 
   If we hide #book border, we lose the 'hardcover' effect for the cover.
   Wait, the cover needs the border.
   If I hide #book border, cover has no border.
   Solution: Keep border, but only on the right half? Impossible with CSS on parent.
   Alternative: When transparent, the 'page 1' needs its own border.
   Or: user simply wants the image centered. 
   If I shift the container, the brown background moves with it.
   The 'Left' page is empty.
   Turn.js hardcode: The left page is effectively invisible.
   But #book is the container.
   If I keep #book background #5D4037, the left half is brown.
   So I MUST make #book background transparent.
   But then the Border?
   The Border surrounds the whole spread.
   If I keep border, I get a frame around empty space.
   For Cover Mode: I should rely on the Cover Image itself having the design, OR apply a specific style to .page.p1
*/
#book.centered-cover .page-wrapper[page="1"] {
    /* No special styling needed if image is full size */
}

/* Center Spine / Curb Effect */
#book::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 20px;
    /* Narrower spine */
    transform: translateX(-50%);
    background: linear-gradient(to right,
            rgba(62, 39, 35, 0) 0%,
            rgba(20, 10, 5, 0.8) 30%,
            rgba(0, 0, 0, 1) 50%,
            rgba(20, 10, 5, 0.8) 70%,
            rgba(62, 39, 35, 0) 100%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Bloom effect for depth */
    z-index: 100000;
    pointer-events: none;
}

/* Left Page Stack / Thickness Effect */
#book::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 12px;
    /* Thickness of the left stack */
    background: repeating-linear-gradient(90deg,
            #f0f0f0,
            #f0f0f0 1px,
            #d0d0d0 2px,
            #d0d0d0 3px);
    box-shadow: inset -2px 0 5px rgba(0, 0, 0, 0.1), 5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 50;
    /* visible but below spine and moving pages if possible */
    pointer-events: none;
}

/* Hide both pseudo-elements on Cover */
#book.centered-cover::after,
#book.centered-cover::before {
    display: none !important;
}

.page {
    background-color: #fff;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transform: scaleY(-1);
    /* Un-flip content */
    /* Stretch to fill completely, removing gaps */
}

/* Bottom Toolbar Styling */
.bottom-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #388E8E;
    /* Teal/Sea color */
    background: rgba(45, 125, 154, 0.95);
    /* Semi-transparent teal */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.1s;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.page-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 14px;
}

#page-number-input {
    width: 50px;
    text-align: center;
    border: none;
    border-radius: 2px;
    padding: 2px;
    font-weight: bold;
    color: #000;
}

/* Responsive Adjustments */
/* Mobile Device Optimization (Max Width 768px) */
@media (max-width: 768px) {

    /* Top Bar matches screenshot */
    .top-bar {
        height: 50px;
        background-color: #2b5876;
        /* Dark Blue/Teal Theme */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    .logo-section .top-logo {
        max-height: 30px;
        /* Smaller logo */
    }

    /* Main Content Area */
    .main-content {
        top: 50px;
        bottom: 50px;
        /* Toolbar height */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Bottom Toolbar matches screenshot */
    .bottom-toolbar {
        height: 50px;
        background-color: #2b5876;
        /* Match Top Bar */
        display: flex;
        justify-content: space-around;
        /* Even spacing for icons */
        align-items: center;
        padding: 0;
        flex-wrap: nowrap;
        /* No wrapping */
    }

    /* Hide Center (Page Nav) and Right Tools on Mobile */
    .center-tools,
    .right-tools {
        display: none !important;
    }

    /* Force show Left Tools and style them */
    .left-tools {
        display: flex !important;
        width: 100%;
        justify-content: space-around;
        gap: 0;
        /* Let space-around handle it */
    }

    /* Style the buttons */
    .tool-btn {
        background: transparent;
        color: #fff;
        font-size: 20px;
        /* Larger icons */
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        /* Subtle Circle/Square border if desired, or just transparent */
        border: none;
    }

    /* Optional: Hide specific left tools if too many, or just let them fit. 
       Current Left: Thumb(1), TOC(2), ZoomIn(3), Bookmark(4), Sound(5), Notes(6).
       Screenshot has 6 icons. perfect.
    */

    /* Adjust Book Container for Single Page View typically used on Mobile */
    #book-container {
        width: 100%;
        height: 100%;
        padding: 10px;
        /* Breathing room */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Ensure shadows/transforms don't break layout */
    #book {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
        /* Lighter shadow for mobile */
    }

    /* Scale down bubbles */
    .bubble {
        transform: scale(0.5);
    }

    /* Remove heavy book border and spine effects on mobile for clean full-page view */
    #book {
        border: none !important;
        background-color: transparent !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        /* Simpler shadow */
    }

    /* Hide the spine (::after) and left stack (::before) on mobile */
    #book::after,
    #book::before {
        display: none !important;
    }

    /* Remove the inset border/frame from pages on mobile so image is full bleed */
    .even .page,
    .odd .page {
        border: none !important;
        background: none !important;
        /* Remove gradient fold effect if it interferes */
        box-shadow: none !important;
    }
}

/* Small Desktop / Tablet Landscape (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .top-bar {
        height: 55px;
        padding: 0 15px;
    }

    .logo-section .top-logo {
        max-height: 40px;
    }

    .bottom-toolbar {
        height: 55px;
        padding: 0 10px;
    }

    .tool-btn {
        font-size: 16px;
        padding: 6px;
    }

    .page-counter {
        font-size: 13px;
    }

    #page-number-input {
        width: 40px;
    }
}

/* Medium Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .top-bar {
        height: 60px;
        padding: 0 20px;
    }

    .logo-section .top-logo {
        max-height: 45px;
    }

    .bottom-toolbar {
        height: 50px;
        padding: 0 15px;
    }

    .tool-btn {
        font-size: 17px;
        padding: 7px;
    }
}

/* Large Desktop (1200px +) */
@media (min-width: 1200px) {
    .top-bar {
        height: 65px;
        padding: 0 30px;
    }

    .main-content {
        top: 65px;
        bottom: 55px;
    }

    .logo-section .top-logo {
        max-height: 80px;
    }

    .bottom-toolbar {
        height: 55px;
        padding: 0 25px;
    }

    .tool-btn {
        font-size: 19px;
        padding: 10px;
    }

    .tool-group {
        gap: 15px;
    }
}

/* Optimized Display for 1280px - 1600px (Specific Request) */
@media (min-width: 1280px) and (max-width: 1600px) {
    .top-bar {
        height: 70px;
        /* More prominent header */
        padding: 0 40px;
    }

    .main-content {
        top: 70px;
        bottom: 60px;
    }

    .logo-section .top-logo {
        max-height: 55px;
    }

    .bottom-toolbar {
        height: 60px;
        /* Taller footer for easy access */
        padding: 0 35px;
    }

    .tool-btn {
        font-size: 20px;
        /* Clearer icons */
        padding: 8px 12px;
    }

    .tool-group {
        gap: 25px;
        /* Cleaner spacing */
    }
}

/* Drawing Toolbar */
#drawing-toolbar {
    position: fixed;
    top: 80px;
    /* Below top bar */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    display: flex;
    gap: 10px;
    align-items: center;
}

#drawing-toolbar .draw-tool {
    background: transparent;
    border: 1px solid transparent;
    color: #333;
    font-size: 16px;
    /* Icon size */
    padding: 5px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

#drawing-toolbar .draw-tool:hover {
    background: #f0f0f0;
}

#drawing-toolbar .draw-tool.active {
    background: #e0e0e0;
    color: #000;
    border-color: #ccc;
}

#drawing-toolbar .separator {
    width: 1px;
    height: 20px;
    background: #ccc;
    margin: 0 5px;
}

/* Annotation Canvas */
#annotation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500;
    /* Above book content/shadows but below toolbar */
    pointer-events: auto;
    /* Capture clicks */
    cursor: crosshair;
    transform: scaleY(-1);
    /* Counter-act container flip to draw normally */
}

.overlay-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    left: 0;
    right: 0;
    height: 300px;
    /* Fixed height strip */
    background: rgba(18, 48, 60, 0.95);
    /* Deep teal */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-header {
    display: flex;
    justify-content: flx-end;
    margin-bottom: 10px;
}

.overlay-header .close-overlay {
    margin-left: auto;
}

.close-overlay {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.thumbnails-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
    height: 100%;
    align-items: center;
    /* Optional: Center content if few items */
    /* justify-content: center; */
}

/* Custom Scrollbar */
.thumbnails-grid::-webkit-scrollbar {
    height: 10px;
}

.thumbnails-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.thumbnails-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.thumbnails-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.thumb-item {
    flex: 0 0 auto;
    width: auto;
    /* Let content dictate width primarily, or set fixed larger width */
    min-width: 160px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
    margin: 0 10px;
}

.thumb-item:hover {
    transform: translateY(-5px);
    /* Lift effect instead of scale */
}

.thumb-img-wrapper {
    display: flex;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    height: 180px;
    /* Fixed height to prevent overflow */
    width: 260px;
    /* Fixed width for uniform value (approx double page spread ratio) */
    background: #000;
    /* Dark background for images */
    justify-content: center;
    /* Center single images */
}

.thumb-item:hover .thumb-img-wrapper {
    border-color: #fda31b;
}

.thumb-img-wrapper img {
    width: 50%;
    /* Default to half width for spreads */
    height: 100%;
    object-fit: contain;
}

.thumb-page-num {
    margin-top: 5px;
    font-size: 12px;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: rgba(45, 125, 154, 0.95);
    /* Matches bottom toolbar */
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    color: #fff;
    backdrop-filter: blur(5px);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.toc-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-toc {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.toc-search-box {
    position: relative;
    margin-bottom: 15px;
}

.toc-search-box input {
    width: 100%;
    padding: 8px 30px 8px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.toc-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.toc-search-box i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

.toc-content {
    flex: 1;
    overflow-y: auto;
}

/* Custom Scrollbar for TOC */
.toc-content::-webkit-scrollbar {
    width: 6px;
}

.toc-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.toc-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.toc-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .toc-sidebar {
        width: 80%;
        /* Wider on mobile */
        max-width: 300px;
    }
}

/* Info / About Modal */
#info-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background: #1F4E5F;
    /* Dark Teal matching screenshot */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    color: #fff;
    display: flex;
    flex-direction: column;
}

#info-modal .modal-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

#info-modal .close-modal {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

#info-modal .close-modal:hover {
    opacity: 1;
}

#info-modal .modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}