body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

header .container {
    text-align: center;
    padding: 40px 30px 30px;
}

main.container {
    margin-top: 0;
}

h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2.2em;
    font-weight: 700;
}

.subtitle {
    color: #6c757d;
    font-size: 1.2em;
    margin-bottom: 0;
    font-weight: 400;
}

h2 {
    color: #333;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.intro-section {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.intro-section h2:first-child {
    margin-top: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.feature h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #007bff;
}

.feature p {
    margin-bottom: 0;
    font-size: 0.95em;
    color: #6c757d;
}

.upload-section {
    margin-bottom: 30px;
    padding: 25px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    background: #fafbfc;
}

.upload-section h2:first-child {
    margin-top: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

#file-help {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    display: none;
}

.results {
    margin-top: 30px;
}

.results.hidden {
    display: none;
}

.marker {
    background-color: #f8f9fa;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
    position: relative;
}

.marker.color-ResolveColorBlue {
    border-left-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.marker.color-ResolveColorRed {
    border-left-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.marker.color-ResolveColorGreen {
    border-left-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.marker.color-ResolveColorYellow {
    border-left-color: #ffc107;
    background-color: rgba(255, 193, 7, 0.05);
}

.marker.color-ResolveColorOrange {
    border-left-color: #fd7e14;
    background-color: rgba(253, 126, 20, 0.05);
}

.marker.color-ResolveColorPurple {
    border-left-color: #6f42c1;
    background-color: rgba(111, 66, 193, 0.05);
}

.marker.color-ResolveColorPink {
    border-left-color: #e83e8c;
    background-color: rgba(232, 62, 140, 0.05);
}

.marker.color-ResolveColorCyan {
    border-left-color: #20c997;
    background-color: rgba(32, 201, 151, 0.05);
}

.marker-color-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    text-transform: capitalize;
}

.marker-color-badge.color-ResolveColorBlue {
    background-color: #007bff;
}

.marker-color-badge.color-ResolveColorRed {
    background-color: #dc3545;
}

.marker-color-badge.color-ResolveColorGreen {
    background-color: #28a745;
}

.marker-color-badge.color-ResolveColorYellow {
    background-color: #ffc107;
    color: #333;
}

.marker-color-badge.color-ResolveColorOrange {
    background-color: #fd7e14;
}

.marker-color-badge.color-ResolveColorPurple {
    background-color: #6f42c1;
}

.marker-color-badge.color-ResolveColorPink {
    background-color: #e83e8c;
}

.marker-color-badge.color-ResolveColorCyan {
    background-color: #20c997;
}

.color-filter-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.color-filter-section.hidden {
    display: none;
}

.filter-stats {
    font-size: 14px;
    color: #6c757d;
    margin-top: 10px;
    font-style: italic;
}

.marker-time {
    font-weight: bold;
    color: #007bff;
}

.marker-name {
    margin-top: 5px;
    color: #333;
}

.youtube-timestamps {
    position: relative;
    background-color: #e9ecef;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.youtube-timestamps h3 {
    margin-top: 0;
    color: #333;
}

.youtube-timestamps button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
}

.timestamp-list {
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.loading {
    text-align: center;
    padding: 20px;
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.upload-section.drag-over {
    background-color: #e3f2fd;
    border-color: #007bff;
    border-style: solid;
}

.drag-hint {
    font-size: 14px;
    color: #6c757d;
    margin-top: 10px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.how-to-section {
    margin-top: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.how-to-section h2:first-child {
    margin-top: 0;
}

.how-to-section ol {
    margin-left: 0;
    padding-left: 20px;
}

.how-to-section li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.how-to-section ul {
    margin-top: 20px;
}

.how-to-section ul li {
    margin-bottom: 8px;
}

.supported-formats {
    margin-top: 50px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.supported-formats h2:first-child {
    margin-top: 0;
}

.format-examples {
    margin-top: 25px;
}

.format-example {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.format-example:last-child {
    margin-bottom: 0;
}

.format-example h3 {
    margin-top: 0;
    color: #007bff;
}

.format-example p {
    margin-bottom: 15px;
}

.format-example code {
    display: block;
    background: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
    font-size: 0.9em;
    line-height: 1.4;
    color: #333;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

footer {
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 14px;
}

.footer-content .footer-links {
    margin-top: 10px;
    font-size: 12px;
    color: #adb5bd;
}

.footer-content a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.footer-content a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.faq-section {
    margin-top: 50px;
    padding: 30px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.faq-section h2:first-child {
    margin-top: 0;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

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

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #007bff;
    font-size: 1.2em;
    font-weight: 600;
}

.faq-item p {
    margin-bottom: 0;
    line-height: 1.6;
    color: #333;
}

/* Responsive improvements */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    header .container {
        padding: 30px 20px 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .intro-section,
    .how-to-section,
    .supported-formats {
        padding: 20px;
    }

    .format-example code {
        font-size: 0.8em;
    }

    .faq-section {
        padding: 20px;
    }

    .faq-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .faq-item h3 {
        font-size: 1.1em;
    }
}
