* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #AA0000 0%, #B3995D 100%);
    min-height: 100vh;
    padding: 20px;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.header {
    background: linear-gradient(135deg, #AA0000 0%, #B3995D 100%);
    color: white;
    padding: 30px;
    text-align: center;
}
.header h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
}
.header p {
    opacity: 0.9;
    font-size: 0.95em;
}
.form-section {
    padding: 40px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #AA0000;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}
.time-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
button {
    flex: 1;
    padding: 15px;
    font-size: 1.05em;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-generate {
    background: linear-gradient(135deg, #AA0000 0%, #B3995D 100%);
    color: white;
}
.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(170, 0, 0, 0.4);
}
.btn-reset {
    background: #e0e0e0;
    color: #333;
}
.btn-reset:hover {
    background: #d0d0d0;
}
.output-section {
    padding: 0 40px 40px;
    display: none;
}
.output-section.show {
    display: block;
}
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.output-header h3 {
    color: #333;
}
.btn-copy {
    background: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}
.btn-copy:hover {
    background: #45a049;
}
.btn-copy.copied {
    background: #2196F3;
}
.script-output {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.5;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.info-box {
    background: #FEF3E2;
    border-left: 4px solid #B3995D;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
}
.info-box p {
    color: #333;
    font-size: 0.9em;
    line-height: 1.6;
}

/* File upload styles */
.file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    background: #f9f9f9;
    cursor: pointer;
}
.file-upload-area:hover {
    border-color: #AA0000;
    background: #fff;
}
.file-upload-area.drag-over {
    border-color: #AA0000;
    background: #fff3f3;
}
.file-upload-area input[type="file"] {
    display: none;
}
.upload-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #AA0000;
}
.upload-text {
    color: #666;
    margin-bottom: 10px;
}
.upload-text strong {
    color: #AA0000;
}
.file-info {
    margin-top: 15px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 4px;
    color: #2e7d32;
    font-size: 0.9em;
    display: none;
}
.file-info.show {
    display: block;
}
.btn-browse {
    display: inline-block;
    padding: 10px 20px;
    background: #AA0000;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 10px;
    transition: background 0.3s;
}
.btn-browse:hover {
    background: #880000;
}

@media (max-width: 600px) {
    .time-inputs {
        grid-template-columns: 1fr;
    }
    .button-group {
        flex-direction: column;
    }
    .form-section, .output-section {
        padding: 20px;
    }
}
