body {
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #495057;
}

.container {
    display: flex;
    flex-direction: column;
    width: 80%;
    height: 100%;
}

.upper-half, .lower-half {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.upper-half {
    position: relative;
    width: 100%;
    height: 50%;
    text-align: center;
}

.upper-half h1 {
    font-size: 3em;
    margin: 0;
}

.upper-half h2 {
    font-size: 2em;
    margin: 0;
}

.controls {
    position: relative;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.controls button {
    margin: 5px 0;
    padding: 10px;
    font-size: 1em;
}

.device-name {
    margin-top: 10px;
    font-size: 1em;
    text-align: left;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    height: 80%;
    padding: 10px;
}

.tile {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tile .title {
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.5); /* Dezenter Hintergrund */
    align-self: flex-start;
    padding-bottom: 5px;
}

.tile .value {
    font-size: 1.4em;
    font-weight: bold;
}

/* Workout Builder Styles */
.workout-builder {
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.workout-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.workout-controls input, .workout-controls select, .workout-controls button {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.segment-builder {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.segment-builder h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
}

.segment-builder input[type="number"],
.segment-builder select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.training-mode {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.training-mode label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    cursor: pointer;
}

.mode-section {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.adjustment-strategy {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.adjustment-strategy label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    cursor: pointer;
}

.hr-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.speed-limits {
    display: grid;
    grid-template-columns: 1fr 1fr 100px;
    gap: 10px;
    align-items: end;
}

.speed-input {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 10px;
    align-items: end;
    margin-bottom: 10px;
}

#addSegment {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#addSegment:hover {
    background: #0056b3;
}

.segments-list {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.segment-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.segment-item:last-child {
    margin-bottom: 0;
}

.segment-details {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.remove-segment {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 15px;
}

.remove-segment:hover {
    background: #c82333;
}

.start-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
}

.start-button:hover {
    background: #45a049;
}

/* Running Interface Styles */
.running-interface {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.running-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.workout-title h2 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.8em;
}

.device-status {
    font-size: 14px;
    color: #6c757d;
}

.workout-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn.secondary {
    background: #6c757d;
    color: white;
}

.control-btn.secondary:hover {
    background: #545b62;
}

.control-btn.warning {
    background: #ffc107;
    color: #212529;
}

.control-btn.warning:hover {
    background: #e0a800;
}

.control-btn.danger {
    background: #dc3545;
    color: white;
}

.control-btn.danger:hover {
    background: #c82333;
}

/* Speed Display */
.speed-display {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.current-speed {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.speed-value {
    font-size: 4em;
    font-weight: bold;
    color: #28a745;
    line-height: 1;
}

.speed-unit {
    font-size: 1.5em;
    color: #6c757d;
    font-weight: 500;
}

.target-info {
    font-size: 1.2em;
    color: #495057;
    font-weight: 500;
}

/* Workout Progress */
.workout-progress {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.segment-header {
    margin-bottom: 20px;
}

.segment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.segment-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #495057;
}

.time-remaining {
    font-size: 1.1em;
    color: #007bff;
    font-weight: 500;
}

.progress-container {
    position: relative;
}

.progress-bar-large {
    width: 100%;
    height: 40px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 20px;
    position: relative;
}

.progress-fill-large::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 0 20px 20px 0;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

/* Tablet layout improvements - 2 columns for wider screens */
@media (min-width: 768px) and (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .running-interface {
        padding: 25px;
        gap: 25px;
    }
    
    .speed-display {
        padding: 35px;
    }
    
    .workout-progress {
        padding: 30px;
    }
    
    .metric-card {
        padding: 25px;
    }
    
    .metric-value {
        font-size: 2em;
    }
    
    .speed-value {
        font-size: 4.5em;
    }
}

/* Large tablet layout - 3 columns for very wide tablets */
@media (min-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .running-interface {
        padding: 30px;
        gap: 30px;
    }
    
    .speed-display {
        padding: 40px;
    }
    
    .workout-progress {
        padding: 35px;
    }
    
    .metric-card {
        padding: 30px;
    }
    
    .metric-value {
        font-size: 2.2em;
    }
    
    .speed-value {
        font-size: 5em;
    }
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid;
    border: 1px solid #e9ecef;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.metric-card.primary {
    border-left-color: #007bff;
}

.metric-card.secondary {
    border-left-color: #6c757d;
}

.metric-card.accent {
    border-left-color: #e91e63;
}

.metric-card.info {
    border-left-color: #17a2b8;
}

.metric-card.warning {
    border-left-color: #ffc107;
}

.metric-card.neutral {
    border-left-color: #28a745;
}

.metric-icon {
    font-size: 2em;
    opacity: 0.8;
}

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #495057;
    line-height: 1;
}

/* PWA Install Button */
.install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    z-index: 1001;
    transition: all 0.3s ease;
}

.install-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }
    
    .workout-builder {
        padding: 15px;
    }
    
    .workout-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .workout-controls input,
    .workout-controls select,
    .workout-controls button {
        width: 100%;
        box-sizing: border-box;
    }
    
    .segment-builder {
        padding: 15px;
    }
    
    .training-mode {
        flex-direction: column;
        gap: 10px;
    }
    
    .speed-limits {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .speed-input {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .segment-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .remove-segment {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* Small tablet responsive design */
@media (max-width: 768px) {
    .running-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .workout-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .speed-value {
        font-size: 3em;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .metric-card {
        padding: 15px;
    }
    
    .metric-value {
        font-size: 1.5em;
    }
    
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .export-buttons {
        grid-template-columns: 1fr;
    }
}

/* Medium tablet layout - 2 columns for post-workout summary */
@media (min-width: 768px) and (max-width: 1024px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .export-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .post-workout-screen {
        padding: 30px;
    }
    
    .workout-summary {
        padding: 25px;
    }
    
    .export-section {
        padding: 25px;
    }
}

/* Large tablet layout for post-workout */
@media (min-width: 1024px) {
    .summary-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .export-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .post-workout-screen {
        padding: 40px;
    }
    
    .workout-summary {
        padding: 30px;
    }
    
    .export-section {
        padding: 30px;
    }
}

/* Large mobile screens */
@media (max-width: 600px) {
    .running-interface {
        padding: 15px;
        gap: 15px;
    }
    
    .speed-display {
        padding: 20px;
    }
    
    .speed-value {
        font-size: 2.5em;
    }
    
    .workout-progress {
        padding: 20px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .metric-card {
        padding: 15px;
    }
    
    .metric-icon {
        font-size: 1.5em;
    }
    
    .metric-value {
        font-size: 1.4em;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    button, .control-btn, .export-btn, .action-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .metric-card:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .export-btn:hover,
    .action-btn:hover,
    .control-btn:hover {
        transform: none;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .running-interface {
        padding: 10px;
        gap: 10px;
    }
    
    .speed-display {
        padding: 15px;
    }
    
    .speed-value {
        font-size: 2em;
    }
    
    .workout-progress {
        padding: 15px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .metric-card {
        padding: 10px;
    }
    
    .metric-value {
        font-size: 1.2em;
    }
}

/* Tablet landscape orientation - optimize for wide screens */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .running-interface {
        padding: 20px;
        gap: 20px;
    }
    
    .speed-display {
        padding: 25px;
    }
    
    .workout-progress {
        padding: 25px;
    }
    
    .metric-card {
        padding: 20px;
    }
    
    .metric-value {
        font-size: 1.8em;
    }
    
    .speed-value {
        font-size: 4em;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .metric-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }
    
    .container {
        background: #1e1e1e;
    }
    
    .workout-builder,
    .running-interface,
    .post-workout-screen {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .workout-summary,
    .export-section,
    .speed-display,
    .workout-progress,
    .metric-card,
    .running-header {
        background: #2d2d2d;
        color: #e0e0e0;
        border-color: #404040;
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .summary-item,
    .segment-item {
        background: #353535;
        border-color: #505050;
        color: #e0e0e0;
    }
    
    .segment-builder,
    .mode-section {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .training-mode,
    .adjustment-strategy {
        background: #353535;
    }
    
    input, select, textarea {
        background: #353535;
        color: #e0e0e0;
        border-color: #505050;
    }
    
    input:focus, select:focus, textarea:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }
    
    .modal-content {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .modal-header {
        background: #353535;
        border-color: #505050;
    }
    
    .progress-bar-large {
        background: #404040;
    }
    
    .tile {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .export-info {
        background: #1a3a5c;
        border-color: #2d5a87;
        color: #e0e0e0;
    }
    
    .close-btn {
        color: #b0b0b0;
    }
    
    .close-btn:hover {
        color: #e0e0e0;
    }
    
    .metric-label {
        color: #b0b0b0;
    }
    
    .summary-label {
        color: #b0b0b0;
    }
    
    .device-status {
        color: #b0b0b0;
    }
    
    .progress-labels {
        color: #b0b0b0;
    }
    
    .workout-datetime {
        color: #b0b0b0;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .progress-fill-large {
        transition: none;
    }
    
    .metric-card:hover {
        transform: none;
    }
}

/* Hide workout builder when running */
.workout-builder.hidden {
    display: none;
}

/* Legacy styles for backward compatibility */
.segment-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.3s ease;
}

/* Treadmill status notification animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.treadmill-notification {
    animation: slideIn 0.3s ease-out;
}

.control-mode-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.control-mode {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

.control-mode.auto {
    background: #4CAF50;
    color: white;
}

.control-mode.manual {
    background: #FF9800;
    color: white;
}

.control-mode.paused {
    background: #9E9E9E;
    color: white;
}

.control-mode.hr-training {
    background: #E91E63;
    color: white;
}

#resumeProgramControl {
    padding: 5px 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

#resumeProgramControl:hover {
    background: #1976D2;
}

.manual-adjustment {
    border-left: 4px solid #FF5722;
}

/* Post-Workout Screen Styles */
.post-workout-screen {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.post-workout-screen h2 {
    text-align: center;
    color: #28a745;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.workout-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.summary-header h3 {
    margin: 0;
    color: #495057;
}

.workout-datetime {
    font-size: 14px;
    color: #6c757d;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.summary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.summary-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #495057;
}

.export-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.export-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #495057;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.export-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.export-btn small {
    font-size: 12px;
    font-weight: normal;
    opacity: 0.8;
}

.garmin-btn {
    background: #007ACC;
    color: white;
}

.garmin-btn:hover {
    background: #005a9e;
    transform: translateY(-2px);
}

.json-btn {
    background: #6c757d;
    color: white;
}

.json-btn:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.export-info {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 6px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.export-info p {
    margin: 0 0 10px 0;
}

.export-info p:last-child {
    margin-bottom: 0;
}

.post-workout-actions {
    text-align: center;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #28a745;
    color: white;
}

.action-btn.primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* JSON Paste Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #495057;
}

.modal-body {
    padding: 20px;
}

#jsonPasteArea {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    min-height: 300px;
    box-sizing: border-box;
}

#jsonPasteArea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.import-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.import-btn:hover {
    background: #0056b3;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.cancel-btn:hover {
    background: #545b62;
}
