/* Tools Styles */

/* Tools Container */
.tools-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.tools-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tools-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tools-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* File Upload Styles */
.tools-file-upload {
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.tools-file-upload:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.tools-file-upload.dragover {
    border-color: #007bff;
    background: #e3f2fd;
}

.tools-file-input {
    display: none;
}

.tools-upload-label {
    cursor: pointer;
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
}

.tools-upload-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.tools-upload-text {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Lesson Creator Styles */
.lesson-creator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.lesson-creator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.lesson-creator-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.lesson-creator-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.lesson-config {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: none;
}

.lesson-config.show {
    display: block;
}

.lesson-config h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.lesson-form-group {
    margin-bottom: 1.5rem;
}

.lesson-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 600;
}

.lesson-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.lesson-form-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.lesson-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.lesson-form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Process Button */
.process-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
    display: none;
}

.process-btn.show {
    display: inline-block;
}

.process-btn:hover {
    background: #218838;
}

.process-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: none;
}

.progress-section.show {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    color: #6c757d;
    font-weight: 600;
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 2rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Results Section */
.results-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: none;
}

.results-section.show {
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.results-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
}

.results-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.results-btn-primary {
    background: #007bff;
    color: white;
}

.results-btn-primary:hover {
    background: #0056b3;
}

.results-btn-secondary {
    background: #6c757d;
    color: white;
}

.results-btn-secondary:hover {
    background: #545b62;
}

.results-btn-success {
    background: #28a745;
    color: white;
}

.results-btn-success:hover {
    background: #218838;
}

/* Extracted Text */
.extracted-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.extracted-text::-webkit-scrollbar {
    width: 6px;
}

.extracted-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.extracted-text::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.extracted-text::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Generated Lesson */
.generated-lesson {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.generated-lesson h4 {
    color: #1976d2;
    margin-bottom: 1rem;
}

.generated-lesson-content {
    color: #424242;
    line-height: 1.6;
}

/* Document Results */
.document-results {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.document-results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.document-results-header h1 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.document-results-content {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
}

.document-results-content::-webkit-scrollbar {
    width: 6px;
}

.document-results-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.document-results-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.document-results-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Access Denied */
.access-denied {
    text-align: center;
    padding: 4rem 2rem;
}

.access-denied-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 2rem;
}

.access-denied h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.access-denied p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.access-denied-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.15s ease-in-out;
}

.access-denied-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-container,
    .lesson-creator-container {
        padding: 1rem;
    }
    
    .tools-header h1,
    .lesson-creator-header h1 {
        font-size: 2rem;
    }
    
    .tools-file-upload {
        padding: 2rem 1rem;
    }
    
    .lesson-config,
    .progress-section,
    .results-section {
        padding: 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .results-actions {
        width: 100%;
        justify-content: center;
    }
    
    .extracted-text,
    .document-results-content {
        max-height: 300px;
    }
}
