/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.info-card h3 {
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.info-card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Upload Section */
.upload-section {
    margin: 40px 0;
}

.upload-box {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    background: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box.dragover {
    background: #e8ebff;
    border-color: #4c63d2;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.upload-box h2 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.upload-description {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.btn-select {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.file-info {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    color: #2a5298;
    display: none;
}

.file-info.show {
    display: block;
}

.btn-generate {
    width: 100%;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border: none;
    padding: 20px;
    font-size: 1.3em;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(17, 153, 142, 0.4);
}

.btn-generate:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-icon {
    font-size: 1.2em;
}

/* Progress Section */
.progress-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9ff;
    border-radius: 12px;
}

.progress-container h3 {
    color: #2a5298;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: bold;
}

.progress-text {
    text-align: center;
    color: #555;
    font-size: 1.1em;
    font-weight: 500;
}

/* Requirements Section */
.requirements-section {
    background: #fff8e1;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 5px solid #ffd54f;
}

.requirements-section h3 {
    color: #f57c00;
    margin-bottom: 20px;
    font-size: 1.5em;
}

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

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-weight: 500;
}

.requirement-icon {
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2em;
}

.requirements-note {
    margin-top: 15px;
    color: #f57c00;
    font-weight: 500;
}

.requirements-note code {
    background: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d32f2f;
}

/* Features Section */
.features-section {
    background: #e8f5e9;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    border-left: 5px solid #4caf50;
}

.features-section h3 {
    color: #2e7d32;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    position: relative;
    padding-left: 40px;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2em;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    color: white;
}

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

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header-content h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    .main-content {
        padding: 20px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .upload-box {
        padding: 40px 20px;
    }

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeIn 0.6s ease;
}

/* Error Message */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #c62828;
    font-weight: 500;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 5px solid #4caf50;
    font-weight: 500;
}

