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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 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;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.mindset-boost {
    background: rgba(255,255,255,0.2);
    padding: 15px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: inline-block;
    font-size: 1.1em;
    animation: pulse 3s ease-in-out infinite;
}

.mindset-boost i {
    color: #ff6b6b;
    margin-right: 8px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Progress Ring */
.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255,255,255,0.3);
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: #4ecdc4;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.progress-text span {
    font-size: 1.5em;
    font-weight: bold;
}

.progress-text small {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
}

/* Step Navigation */
.step-nav {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.step:not(.active):hover {
    background: #f8f9ff;
    transform: translateY(-2px);
}

.step.active {
    background: #667eea;
    color: white;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e8ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: rgba(255,255,255,0.3);
}

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

.step-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-content.active {
    display: block;
}

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

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 2.2em;
    color: #667eea;
    margin-bottom: 10px;
}

.step-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.upload-zone:hover {
    border-color: #4ecdc4;
    background: #f8f9ff;
}

.upload-zone.dragover {
    border-color: #4ecdc4;
    background: #e8f5ff;
    transform: scale(1.02);
}

.upload-zone i {
    font-size: 4em;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-zone h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #333;
}

.upload-zone p {
    color: #666;
    font-size: 1em;
}

#file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Upload Instructions */
.upload-instructions {
    margin-bottom: 30px;
}

.upload-instructions h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.instruction-box {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
    border-left: 4px solid #667eea;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.instruction-box p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.instruction-box ul {
    margin: 10px 0 10px 20px;
}

.instruction-box li {
    margin-bottom: 5px;
}

/* Materials Checklist */
.materials-checklist {
    margin-bottom: 30px;
}

.materials-checklist h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Study Guide Options */
.study-guide-options {
    margin-top: 30px;
}

.study-guide-options h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Problem and Quiz Style Selectors */
.problem-style-selector,
.quiz-style-selector {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9ff;
    border-radius: 10px;
}

.problem-style-selector label,
.quiz-style-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: #4ecdc4;
    border-color: #4ecdc4;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-item input[type="radio"]:checked + .radio-mark {
    border-color: #4ecdc4;
}

.radio-item input[type="radio"]:checked + .radio-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #4ecdc4;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Generated Prompt */
.generated-prompt {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f5ff 100%);
    border-radius: 15px;
    border: 1px solid #e1e8ed;
}

.generated-prompt h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.prompt-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e1e8ed;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    min-height: 100px;
    white-space: pre-wrap;
}

.copy-btn {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.copy-btn:hover {
    background: #45b7b8;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.nav-btn {
    padding: 15px 30px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.nav-btn.primary {
    background: #667eea;
    color: white;
}

.nav-btn.primary:hover {
    background: #5a67d8;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn:disabled:hover {
    transform: none;
}

/* Pomodoro Timer */
.pomodoro-timer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
}

.timer-content h4 {
    color: #667eea;
    margin-bottom: 10px;
    text-align: center;
}

.timer-display {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.timer-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease;
}

.timer-controls button:hover {
    background: #5a67d8;
}

/* File Upload Feedback */
.uploaded-files {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    background: #f8f9ff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e1e8ed;
}

.file-item i {
    color: #4ecdc4;
    margin-right: 10px;
}

.file-item .file-name {
    flex: 1;
    font-weight: 500;
}

.file-item .file-size {
    color: #666;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2em;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .step-nav {
        padding: 15px;
        gap: 5px;
    }
    
    .step {
        min-width: 80px;
        padding: 10px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .pomodoro-timer {
        position: static;
        margin: 20px auto;
        max-width: 300px;
    }
    
    .progress-ring {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }
    
    .step-header h2 {
        font-size: 1.8em;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .upload-zone {
        padding: 40px 15px;
    }
    
    .upload-zone i {
        font-size: 3em;
    }
}