* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar Styles - Fixed/Locked Panel */
.sidebar {
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
}

.sidebar h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
}

.user-info {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.user-info p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.user-info span {
    font-weight: 600;
    color: #667eea;
}

.sidebar-buttons {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-buttons .btn {
    width: 100%;
    padding: 8px;
    font-size: 12px;
}

.search-box {
    padding: 10px;
}

.search-box input {
    width: 100%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
}

.members-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
}

.member-item {
    padding: 8px;
    margin: 4px 0;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 12px;
}

.member-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.member-item.selected {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.member-item.gen-1 { border-left-color: #e1bee7; }
.member-item.gen-2 { border-left-color: #b2dfdb; }
.member-item.gen-3 { border-left-color: #ffccbc; }
.member-item.gen-4 { border-left-color: #bbdefb; }

.stats {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
}

.stats p {
    margin: 4px 0;
    font-size: 12px;
}

/* Main Content - Offset by sidebar width */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 20px 20px;
    margin-left: 240px;
    height: 100vh;
    overflow-x: auto;
    overflow-y: auto;
}



.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}

.toolbar {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#topScrollbar {
    position: fixed;
    z-index: 999;
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    background: #f1f1f1;
    height: 21px;
    border: 2px solid white;
}

#topScrollbarInner {
    height: 1px;
}

.tree-canvas {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 0;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 0;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-primary { background: #2196f3; }
.btn-secondary { background: #9c27b0; }
.btn-success { background: #4caf50; }
.btn-danger { background: #f44336; }
.btn-warning { background: #ff9800; }
.btn-info { background: #00bcd4; }
.btn-add { background: #4caf50; }
.btn-edit { background: #2196f3; }
.btn-restore { background: #9c27b0; }
.btn-show-all { background: #ff9800; }
.btn-admin { background: #9c27b0; }
.btn-info { background: #17a2b8; }
.btn-logout { background: #f44336; width: 100%; padding: 8px; font-size: 12px; }

/* Button color groups for sidebar */
.btn-purple { background: #9c27b0; }
.btn-purple:hover { background: #7b1fa2; }
.btn-blue { background: #2196f3; }
.btn-blue:hover { background: #1976d2; }
.btn-green { background: #4caf50; }
.btn-green:hover { background: #388e3c; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196f3;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Tree Visualization */
.tree-node {
    display: inline-block;
    margin: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tree-node:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.tree-node.selected {
    border: 3px solid #2196f3;
}

.tree-node.male {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tree-node.female {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Generation Colors */
.generation-1 {
    background: #e1bee7 !important;
    color: #4a148c !important;
}

.generation-2 {
    background: #b2dfdb !important;
    color: #004d40 !important;
}

.generation-3 {
    background: #ffccbc !important;
    color: #bf360c !important;
}

.generation-4 {
    background: #bbdefb !important;
    color: #01579b !important;
}

.generation-5 {
    background: #f8bbd0 !important;
    color: #880e4f !important;
}

.tree-node-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.tree-node-info {
    font-size: 12px;
    opacity: 0.9;
}

.tree-level {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 30px 0;
    position: relative;
}

.tree-children {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-left: 40px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Profile photo popup animation */
@keyframes photoPopupGrow {
    from {
        transform: scale(var(--popup-start-scale, 0.18));
        opacity: 0.7;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#profilePhotoPopup.photo-popup-animate {
    animation: photoPopupGrow 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes photoPopupShrink {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(var(--popup-start-scale, 0.18));
        opacity: 0;
    }
}

#profilePhotoPopup.photo-popup-shrink {
    animation: photoPopupShrink 1s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

/* User Maintenance Styles */
.user-maintenance-section {
    margin-top: 20px;
}

.users-list {
    margin-top: 20px;
}

.user-item {
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.user-item.inactive {
    opacity: 0.6;
    border-left-color: #ccc;
}

.user-item h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.user-item p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

.user-item .user-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.user-item .user-actions button {
    padding: 6px 12px;
    font-size: 12px;
}

/* Email Notification Styles */
.email-notification-section {
    padding: 10px 0;
}

.email-template-section h3,
.email-recipients-section h3 {
    color: #2c5f2d;
    margin-bottom: 15px;
}

.email-recipients-list {
    background: white;
}

.email-recipients-list label {
    transition: background 0.2s;
}

.email-recipients-list label:hover {
    background: #f3f4f6;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-primary {
    background: #3B82F6;
    color: white;
}

.btn-primary:hover {
    background: #2563EB;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: 300px;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        height: auto;
        min-height: calc(100vh - 300px);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide mobile-only elements on desktop by default */
.mobile-header,
.sidebar-overlay,
.mobile-photo-popup,
.mobile-fab-container,
.mobile-logout-btn,
.mobile-sidebar-close {
    display: none;
}

.mobile-sidebar-settings {
    display: none;
}

/* Zoom controls - hidden on desktop */
.zoom-controls {
    display: none;
}

/* Lineage View Banner */
.lineage-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #dbeafe;
    color: #1e40af;
    padding: 8px 15px;
    font-size: 13px;
    border-bottom: 2px solid #3b82f6;
    gap: 10px;
}

.lineage-banner button {
    background: none;
    border: none;
    color: #1e40af;
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    font-weight: bold;
}

.lineage-banner button:hover {
    color: #dc2626;
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .sidebar {
    background: #1e1e2e;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

body.dark-mode .sidebar h1 {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .user-info {
    background: #2d2d3d;
    border-bottom-color: #404050;
}

body.dark-mode .user-info p {
    color: #e0e0e0;
}

body.dark-mode .user-info span {
    color: #a78bfa;
}

body.dark-mode .search-box input {
    background: #2d2d3d;
    border-color: #404050;
    color: #e0e0e0;
}

body.dark-mode .member-item {
    background: #2d2d3d;
    color: #e0e0e0;
}

body.dark-mode .member-item:hover {
    background: #3d3d4d;
}

body.dark-mode .member-item.selected {
    background: #3d4d5d;
}

body.dark-mode .stats {
    background: #2d2d3d;
    border-top-color: #404050;
}

body.dark-mode .stats p {
    color: #e0e0e0;
}

body.dark-mode .toolbar {
    background: #1e1e2e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .tree-canvas {
    background: #1e1e2e;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .modal-content {
    background: #1e1e2e;
    color: #e0e0e0;
}

body.dark-mode .modal-content h2 {
    color: #e0e0e0;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: #2d2d3d;
    border-color: #404050;
    color: #e0e0e0;
}

body.dark-mode .close {
    color: #888;
}

body.dark-mode .close:hover {
    color: #e0e0e0;
}

body.dark-mode .user-item {
    background: #2d2d3d;
    border-left-color: #a78bfa;
}

body.dark-mode .user-item h4 {
    color: #e0e0e0;
}

body.dark-mode .user-item p {
    color: #b0b0b0;
}

body.dark-mode #darkModeBtn {
    background: #fbbf24;
    color: #1a1a2e;
}

body.dark-mode .email-recipients-list {
    background: #2d2d3d;
}

body.dark-mode .email-recipients-list label {
    color: #e0e0e0;
}

body.dark-mode .email-recipients-list label:hover {
    background: #3d3d4d;
}

body.dark-mode #publicViewLabel {
    color: white;
}

body.dark-mode #panelLockLabel {
    color: #e0e0e0;
}

body.dark-mode #viewModeLabel {
    color: #e0e0e0;
}

body.dark-mode #viewModeSelect {
    background: #2d2d3d;
    border-color: #404050;
    color: #e0e0e0;
}

body.dark-mode .lineage-banner {
    background: #1e3a5f;
    color: #93c5fd;
    border-bottom-color: #3b82f6;
}

body.dark-mode .lineage-banner button {
    color: #93c5fd;
}

body.dark-mode .lineage-banner button:hover {
    color: #f87171;
}

body.dark-mode .sidebar-separator {
    border-top-color: #404050;
}
body.dark-mode .mobile-setting-label {
    background: #2d2d3d;
    color: #e0e0e0;
}
body.dark-mode .mobile-setting-label select {
    background: #2d2d3d;
    border-color: #404050;
    color: #e0e0e0;
}

/* Mobile Responsive - portrait phones (≤480px) and landscape phones */
@media (max-width: 480px), (max-height: 480px) and (orientation: landscape) and (max-width: 960px) {
    /* Hide sidebar completely by default */
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .sidebar.mobile-open {
        left: 0;
    }

    /* Make sidebar buttons section scrollable */
    .sidebar .sidebar-buttons {
        flex-shrink: 0;
        max-height: none;
        overflow-y: visible;
    }

    /* Ensure members list has enough space for search results */
    .sidebar .members-list {
        min-height: 40vh;
    }

    /* Reduce padding and font size for mobile sidebar */
    .sidebar h1 {
        font-size: 1.4em !important;
        padding: 10px;
        margin-bottom: 0 !important;
    }

    .sidebar h2 {
        font-size: 1em !important;
        padding: 0 10px 10px;
    }

    .sidebar .user-info {
        padding: 8px 10px;
    }

    .sidebar .sidebar-buttons .btn {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* Sidebar overlay when open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Main content takes full width */
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    /* Mobile header with hamburger and search */
    .mobile-header {
        display: flex;
        align-items: center;
        padding: 10px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        gap: 10px;
    }

    .hamburger-btn {
        background: white;
        border: none;
        border-radius: 5px;
        padding: 8px 12px;
        font-size: 20px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-header .mobile-search {
        flex: 1;
        padding: 8px 12px;
        border: none;
        border-radius: 5px;
        font-size: 14px;
    }

    .mobile-header .mobile-search-results {
        position: absolute;
        top: 50px;
        left: 50px;
        right: 10px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        max-height: 200px;
        overflow-y: auto;
        z-index: 1001;
        display: none;
    }

    .mobile-header .mobile-search-results.active {
        display: block;
    }

    .mobile-search-results .search-result-item {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
    }

    .mobile-search-results .search-result-item:hover {
        background: #f5f5f5;
    }

    /* Hide toolbar buttons on mobile */
    .toolbar {
        display: none !important;
    }

    #topScrollbar {
        display: none !important;
    }

    /* Show mobile logout button in sidebar */
    .mobile-logout-btn {
        display: block !important;
        margin-top: 15px;
    }

    /* Red X close button for mobile sidebar */
    .mobile-sidebar-close {
        display: block !important;
        position: absolute;
        top: 8px;
        right: 10px;
        background: none;
        border: none;
        color: #dc3545;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1001;
        line-height: 1;
        padding: 0 5px;
    }

    /* Broadcast banner: 1-line truncated on mobile, expandable */
    #broadcastBanner {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
    }
    #broadcastBanner.expanded {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    /* F10 help panel responsive */
    #f10HelpPanel {
        width: 90vw !important;
        height: 60vh !important;
        top: 80px !important;
        right: 5vw !important;
    }

    /* Hide view-only banner text, make it smaller */
    #viewOnlyBanner {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Tree canvas full width */
    .tree-canvas {
        width: 100%;
    }

    /* Photo popup modal for mobile */
    .mobile-photo-popup {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .mobile-photo-popup.active {
        display: flex;
    }

    .mobile-photo-popup img {
        max-width: 80%;
        max-height: 60%;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }

    .mobile-photo-popup .person-name {
        color: white;
        font-size: 20px;
        margin-top: 15px;
        text-align: center;
        padding: 0 20px;
    }

    .mobile-photo-popup .no-photo-placeholder {
        width: 150px;
        height: 150px;
        background: white;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 60px;
        color: #667eea;
    }

    .mobile-photo-popup .close-popup {
        position: absolute;
        top: 20px;
        right: 20px;
        background: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Mobile FAB Container */
    .mobile-fab-container {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 500;
    }

    /* FAB Menu (expandable) */
    .mobile-fab-menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .mobile-fab-menu.active {
        display: flex;
    }

    /* FAB Menu Items */
    .fab-menu-item {
        background: white;
        color: #333;
        border: none;
        border-radius: 25px;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        text-align: left;
        white-space: nowrap;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .fab-menu-item:hover, .fab-menu-item:active {
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    /* Main FAB Button */
    .mobile-fab-btn {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        font-size: 24px;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        transition: transform 0.3s;
        display: block;
        margin-left: auto;
    }

    .mobile-fab-btn.active {
        transform: rotate(45deg);
    }

    /* My Silver Family Tree button - hidden by default, shown only in view-only mode */
    .mobile-home-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 25px;
        padding: 12px 20px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        margin-top: 15px;
        display: none;
        width: 100%;
    }

    /* Hide desktop-only elements */
    #publicFamilySearch,
    #publicSearchResults,
    #familySelectorContainer,
    #publicViewLabel,
    #panelLockLabel,
    #viewModeLabel {
        display: none !important;
    }

    /* Mobile sidebar settings controls */
    .mobile-sidebar-settings {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sidebar-separator {
        border: none;
        border-top: 1px solid #ddd;
        margin: 10px 0 5px 0;
    }

    .mobile-setting-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #333;
        cursor: pointer;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 6px;
    }

    .mobile-setting-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .mobile-setting-label select {
        padding: 4px 8px;
        font-size: 13px;
        border-radius: 4px;
        border: 1px solid #ddd;
        flex: 1;
    }

    /* Zoom controls - bottom left (FAB is bottom right) */
    .zoom-controls {
        display: flex;
        position: fixed;
        bottom: 90px;
        left: 15px;
        flex-direction: column;
        gap: 4px;
        z-index: 500;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        padding: 4px;
    }

    .zoom-btn {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 6px;
        background: white;
        color: #333;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }

    .zoom-btn:active {
        background: #e0e0e0;
    }

    .zoom-label-btn {
        font-size: 11px;
        font-weight: 600;
        color: #666;
    }

    /* Dark mode zoom controls */
    body.dark-mode .zoom-controls {
        background: rgba(40, 40, 40, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    body.dark-mode .zoom-btn {
        background: #333;
        color: #e0e0e0;
    }

    body.dark-mode .zoom-btn:active {
        background: #555;
    }

    body.dark-mode .zoom-label-btn {
        color: #aaa;
    }
}
