* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Scoped for Jekyll - use .converter-container wrapper */
.converter-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Standalone version - body styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.converter-container .container,
body .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    background: transparent;
    padding: 40px 20px;
    border-bottom: 1px solid #333;
}

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

.logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.brand-subtitle {
    font-size: 1rem;
    color: #B8EC4E;
    font-weight: 400;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

header p {
    font-size: 1.1rem;
    color: #cccccc;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.upload-section, .preview-section, .settings-section, .download-section {
    background: transparent;
    border-radius: 0;
    padding: 25px 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

.upload-section {
    grid-column: 1 / -1;
}

.preview-section {
    grid-column: 1 / -1;
}

.settings-section {
    grid-column: 1 / -1;
}

.download-section {
    grid-column: 1 / -1;
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #B8EC4E;
    padding-bottom: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.upload-area {
    border: 2px dashed #B8EC4E;
    border-radius: 0;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #ffffff;
}

.upload-area:hover {
    border-color: #B8EC4E;
    background: #111111;
}

.upload-area.dragover {
    border-color: #B8EC4E;
    background: #111111;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #B8EC4E;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #B8EC4E;
    color: #ffffff;
}

.file-item.error {
    border-left-color: #e74c3c;
    background: #fdf2f2;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
}

.file-status {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #B8EC4E;
    color: #000000;
    border: 1px solid #B8EC4E;
}

.btn-primary:hover:not(:disabled) {
    background: #9FD43A;
    border-color: #9FD43A;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #B8EC4E;
    border: 2px solid #B8EC4E;
}

.btn-outline:hover {
    background: #B8EC4E;
    color: #000000;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.chart-type-selector {
    display: flex;
    gap: 20px;
}

.chart-type-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.file-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-selector select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 200px;
    background: white;
}

.file-selector select:focus {
    outline: none;
    border-color: #B8EC4E;
    box-shadow: 0 0 0 0.2rem rgba(184, 236, 78, 0.25);
}

.series-controls {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.series-controls h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.series-controls h4 {
    color: #2c3e50;
    margin: 20px 0 15px 0;
    font-size: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.chart-settings {
    background: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.caption-setting {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.caption-setting label {
    font-weight: 500;
    color: #2c3e50;
}

.caption-input {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: white;
}

.caption-input:focus {
    outline: none;
    border-color: #B8EC4E;
    box-shadow: 0 0 0 0.2rem rgba(184, 236, 78, 0.25);
}

.series-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.series-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.series-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.series-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
}

.series-name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: white;
}

.series-name-input:focus {
    outline: none;
    border-color: #B8EC4E;
    box-shadow: 0 0 0 0.2rem rgba(184, 236, 78, 0.25);
}

.series-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.series-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.chart-container {
    position: relative;
    height: 400px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.download-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.converted-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.converted-file {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.converted-file:hover {
    border-color: #B8EC4E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.converted-file h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1rem;
}

.converted-file p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.example-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.example-data {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.example-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid #B8EC4E;
    background: transparent;
    color: #B8EC4E;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #B8EC4E;
    color: #000000;
}

.tab-btn.active {
    background: #B8EC4E;
    color: #000000;
}

.example-data pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-selector select {
        min-width: auto;
    }
    
    .download-controls {
        flex-direction: column;
    }
    
    .converted-files {
        grid-template-columns: 1fr;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.site-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    padding: 30px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.footer-content {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: #B8EC4E;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.settings-form {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #333;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.form-group label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
    min-height: 1.2rem;
    display: flex;
    align-items: center;
}

.form-input, .form-select {
    padding: 10px 12px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #B8EC4E;
    box-shadow: 0 0 0 0.2rem rgba(184, 236, 78, 0.25);
}

.form-input::placeholder {
    color: #888;
}

.series-names {
    margin: 20px 0;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 6px;
    border: 1px solid #555;
}

.series-name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.series-name-item:last-child {
    border-bottom: none;
}

.series-name-text {
    color: #ffffff;
    font-size: 0.9rem;
}

.series-name-remove {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.series-name-remove:hover {
    background: #c0392b;
}

.form-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
}

.process-section {
    margin-top: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #B8EC4E;
}

.process-actions {
    text-align: center;
}
