:root {
    --primary-color: #5D3A9B;
    --secondary-color: #FFAC5D;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --dark-color: #121212;
    --darker-color: #2C1768;
    --medium-color: #334FB4;
    --light-color: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --font-body-family: Assistant, sans-serif;
    --font-body-weight: 400;
    --font-heading-weight: 700;
}

body {
    font-family: var(--font-body-family);
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #242833 0%, #121212 100%);
    min-height: 100vh;
    color: #FFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: transparent;
}

header {
    background: linear-gradient(135deg, #2C1768 0%, #5D3A9B 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: var(--font-heading-weight);
}

.connection-bar {
    background: linear-gradient(135deg, #4A318D 0%, #2C1768 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#connectButton, #debugConnectButton {
    background: var(--secondary-color);
    color: #2C1768;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 16px;
}

#connectButton:hover, #debugConnectButton:hover {
    background: #FFBB6D;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#connectButton.connected, #debugConnectButton.connected {
    background: var(--success-color);
    color: white;
}

.status {
    font-weight: 500;
    color: white;
    font-size: 16px;
}

.status.connected {
    color: var(--success-color);
}

.status.disconnected {
    color: var(--danger-color);
}

.connection-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: start;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .servo-grid {
        grid-template-columns: 1fr;
    }

    .left-panel {
        width: 100%;
    }
}

.controls-section, .tcode-section {
    background: rgba(44, 23, 104, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.controls-section.active, .tcode-section.active {
    background: rgba(74, 49, 141, 0.4);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 6px 24px rgba(255, 172, 93, 0.3);
}

.controls-section.active .section-title, .tcode-section.active .section-title {
    color: var(--secondary-color);
    font-size: 1.3em;
}

.controls-section.active::before, .tcode-section.active::before {
    content: '●';
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--success-color);
    font-size: 1.2em;
}

.controls-section:not(.active) .action-btn,
.controls-section:not(.active) .control-btn,
.tcode-section:not(.active) .tcode-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.controls-section:not(.active) .action-btn,
.controls-section:not(.active) .control-btn {
    pointer-events: none;
}

.controls-section {
    position: relative;
}

.servo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
    width: 100%;
}

.section-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: white;
    border-bottom: 2px solid var(--medium-color);
    padding-bottom: 5px;
    font-weight: var(--font-heading-weight);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.hero-section {
    background: linear-gradient(rgba(44, 23, 104, 0.7), rgba(93, 58, 155, 0.7)),
                url('../assets/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.servo-control {
    background: rgba(74, 49, 141, 0.3);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.servo-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    text-align: center;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.control-btn {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    min-width: 70px;
}

.up-btn {
    background: var(--primary-color);
    color: white;
}

.down-btn {
    background: #7e57c2;
    color: white;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.servo-value {
    text-align: center;
    font-weight: bold;
    margin-top: 8px;
    color: var(--secondary-color);
    font-size: 1.1em;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.read-btn {
    background: var(--medium-color);
    color: white;
}

.save-btn {
    background: var(--success-color);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.reset-btn {
    background: var(--danger-color);
    color: white;
}

.data-panel {
    background: rgba(44, 23, 104, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

#receiveData {
    width: 100%;
    height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    background-color: rgba(30, 15, 75, 0.5);
    color: #FFAC5D;
    border: 1px solid #4A318D;
    padding: 15px;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    font-size: 0.9em;
    margin: 0 auto;
    text-align: left;
    box-sizing: border-box;
    word-wrap: break-word;
}

textarea#receiveData:focus, textarea#sendData:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2C1768 0%, #5D3A9B 100%);
    padding: 15px 20px;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-lang {
    margin-left: 10px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-btn.active {
    background: var(--secondary-color);
    color: #2C1768;
    font-weight: bold;
}

.debug-content {
    padding: 20px;
    min-height: 500px;
}

.debug-controls {
    background: rgba(44, 23, 104, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.debug-send-area textarea {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid #4A318D;
    background-color: rgba(30, 15, 75, 0.5);
    color: #FFAC5D;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.debug-send-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.debug-send-controls input, .debug-send-controls select, .debug-send-controls button {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid #4A318D;
    background-color: var(--primary-color);
    color: white;
}

.debug-send-controls button {
    background: var(--medium-color);
    cursor: pointer;
}

.debug-send-controls button:hover {
    background: #4527a0;
}

.debug-options {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 10px;
}

.debug-console {
    width: 100%;
    height: 300px;
    overflow-y: auto;
    background-color: rgba(30, 15, 75, 0.5);
    color: #FFAC5D;
    border: 1px solid #4A318D;
    padding: 15px;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    font-size: 0.9em;
    margin-top: 10px;
    box-sizing: border-box;
}

#sendData {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius);
    border: 1px solid #4A318D;
    background-color: rgba(30, 15, 75, 0.5);
    color: #FFAC5D;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#debugReceiveData {
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

#debugReceiveData br {
    content: "";
    display: block;
    margin: 0.5em 0;
}

@media (max-width: 900px) {
    .servo-grid {
        grid-template-columns: 1fr;
    }

    .debug-send-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .option-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .debug-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.tcode-controls-header {
    width: 100%;
    margin-bottom: 20px;
}

.tcode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .tcode-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tcode-grid {
        grid-template-columns: 1fr;
    }
}

.tcode-axis {
    background: rgba(74, 49, 141, 0.3);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.axis-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
    text-align: center;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcode-slider {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #1a1a2e 0%, #2C1768 50%, #1a1a2e 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border: 2px solid rgba(255, 172, 93, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tcode-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFAC5D, #FF8C00);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(255, 172, 93, 0.6),
                0 2px 4px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
    border: 3px solid #FFF;
}

.tcode-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: linear-gradient(145deg, #FFC77F, #FFAC5D);
    box-shadow: 0 6px 12px rgba(255, 172, 93, 0.8),
                0 3px 6px rgba(0, 0, 0, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.tcode-slider::-webkit-slider-thumb:active {
    transform: scale(1.1);
    background: linear-gradient(145deg, #FF8C00, #E67300);
}

.tcode-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFAC5D, #FF8C00);
    cursor: pointer;
    border: 3px solid #FFF;
    box-shadow: 0 4px 8px rgba(255, 172, 93, 0.6),
                0 2px 4px rgba(0, 0, 0, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.tcode-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    background: linear-gradient(145deg, #FFC77F, #FFAC5D);
    box-shadow: 0 6px 12px rgba(255, 172, 93, 0.8),
                0 3px 6px rgba(0, 0, 0, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.tcode-slider::-moz-range-thumb:active {
    transform: scale(1.1);
    background: linear-gradient(145deg, #FF8C00, #E67300);
}

.tcode-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tcode-slider:disabled::-webkit-slider-thumb {
    background: #666;
}

.tcode-slider:disabled::-moz-range-thumb {
    background: #666;
}

.value-display {
    text-align: center;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.1em;
    margin-top: 5px;
}

.start-tcode-btn {
    background: var(--medium-color);
    color: white;
}

.start-tcode-btn:hover {
    background: #4527a0;
}

.start-tcode-btn.active {
    background: var(--danger-color);
}

.stop-tcode-btn {
    background: var(--danger-color);
    color: white;
}

.stop-tcode-btn:hover {
    background: #d32f2f;
}

.flash-content {
    padding: 20px;
    min-height: 500px;
}

.flash-controls {
    background: rgba(44, 23, 104, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .flash-form {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: bold;
    color: white;
    font-size: 0.95em;
}

.form-input, .form-select {
    padding: 10px 12px;
    border-radius: var(--border-radius);
    border: 1px solid #4A318D;
    background-color: rgba(30, 15, 75, 0.5);
    color: #FFAC5D;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    box-sizing: border-box;
}

input[type="file"] {
    color: #FFAC5D;
}

input[type="file"]::file-selector-button {
    background-color: var(--medium-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: var(--medium-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(255, 172, 93, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #FFAC5D;
    font-size: 0.95em;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
    background-color: #1E0F4B;
    border: 2px solid #4A318D;
    border-radius: 4px;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--secondary-color);
}

.form-file-name {
    padding: 0;
    background-color: transparent;
    border: none;
    color: #FFAC5D;
    font-size: 0.95em;
    font-family: 'Courier New', monospace;
    flex: 1;
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid #4A318D;
    background-color: rgba(30, 15, 75, 0.5);
    box-sizing: border-box;
}

.file-select-btn {
    background-color: var(--medium-color);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    white-space: nowrap;
}

.file-select-btn:hover {
    background-color: #4527a0;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--secondary-color);
}

.flash-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

.flash-buttons .action-btn {
    flex: 1;
    min-width: 120px;
}

.flash-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.info-label {
    font-weight: bold;
    color: white;
    min-width: 100px;
}

.info-value {
    color: var(--secondary-color);
    font-weight: 500;
}

.progress-bar-container {
    flex: 1;
    min-width: 200px;
    height: 20px;
    background: rgba(30, 15, 75, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #4A318D;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--medium-color));
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-weight: bold;
    color: var(--secondary-color);
    min-width: 50px;
    text-align: right;
}

.flash-log-panel {
    background: rgba(44, 23, 104, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-console {
    width: 100%;
    height: 300px;
    overflow-y: auto;
    background-color: rgba(30, 15, 75, 0.5);
    color: #FFAC5D;
    border: 1px solid #4A318D;
    padding: 15px;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    font-size: 0.9em;
    margin-top: 10px;
    box-sizing: border-box;
}

#flashConnectButton {
    background: var(--secondary-color);
    color: #2C1768;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 16px;
}

#flashConnectButton:hover {
    background: #FFBB6D;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#flashConnectButton.connected {
    background: var(--success-color);
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: linear-gradient(135deg, #2C1768 0%, #5D3A9B 100%);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid var(--secondary-color);
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.modal-content p {
    color: white;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.supported-browsers {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: var(--border-radius);
}

.supported-browsers h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.browser-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.browser-list li {
    margin-bottom: 12px;
}

.browser-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    display: block;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    transition: all 0.2s;
    text-align: center;
}

.browser-link:hover {
    background: var(--secondary-color);
    color: #2C1768;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 172, 93, 0.3);
}

.close-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
    width: 100%;
    transition: all 0.2s;
}

.close-button:hover {
    background: #4527a0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pin-info-link {
    font-size: 0.75em;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    padding: 5px 12px;
    border-radius: 4px;
    margin-left: 15px;
    transition: all 0.2s;
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
}

.pin-info-link:hover {
    background: var(--secondary-color);
    color: #2C1768;
    transform: scale(1.05);
}

.pin-info-modal-content {
    max-width: 500px;
}

.pin-info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.pin-info-title {
    color: var(--secondary-color);
    font-size: 1.1em;
    margin: 0 0 10px 0;
    font-weight: var(--font-heading-weight);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.pin-info-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pin-item {
    color: white;
    font-size: 0.95em;
    padding: 5px 0;
    line-height: 1.4;
}

#imageModal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#imageModal .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

#imageModal .close-modal {
    right: 25px;
    top: 20px;
}