/* Thesis Statement Generator Styles */
.thesis-generator-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

.thesis-generator-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e5e9;
    overflow: hidden;
}

.thesis-generator-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.thesis-generator-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.thesis-generator-header h2 i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.thesis-generator-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.thesis-generator-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 0.5rem;
    color: #667eea;
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #718096;
    font-size: 0.8rem;
}

.thesis-generator-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.thesis-generator-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
}

.thesis-generator-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.thesis-generator-btn.secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.thesis-generator-btn.secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.thesis-generator-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.thesis-error {
    background: #fed7d7;
    color: #c53030;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #f56565;
    font-weight: 500;
}

.thesis-error i {
    margin-right: 0.5rem;
}

.thesis-loader {
    text-align: center;
    padding: 3rem 2rem;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.thesis-results {
    padding: 0 2rem 2rem;
}

.results-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.4rem;
    flex: 1;
}

.results-header h3 i {
    margin-right: 0.5rem;
    color: #667eea;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thesis-statements {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.thesis-statement-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.thesis-statement-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.statement-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.statement-number {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.quality-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.25rem;
}

.quality-badge.strong {
    background: #c6f6d5;
    color: #22543d;
}

.quality-badge.good {
    background: #fed7d7;
    color: #742a2a;
}

.quality-badge.needs-work {
    background: #feebcb;
    color: #744210;
}

.confidence-score {
    color: #718096;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: auto;
}

.statement-text {
    color: #2d3748;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.statement-actions {
    display: flex;
    justify-content: flex-end;
}

.copy-statement {
    background: none;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.copy-statement:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .thesis-generator-container {
        margin: 1rem;
    }
    
    .thesis-generator-header,
    .thesis-generator-form {
        padding: 1.5rem;
    }
    
    .thesis-results {
        padding: 0 1.5rem 1.5rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        justify-content: stretch;
    }
    
    .thesis-generator-btn.secondary {
        flex: 1;
        text-align: center;
    }
    
    .statement-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .confidence-score {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .thesis-generator-header h2 {
        font-size: 1.5rem;
    }
    
    .thesis-generator-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem 0.75rem;
    }
    
    .thesis-statement-card {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .thesis-generator-btn,
    .statement-actions,
    .results-actions {
        display: none !important;
    }
    
    .thesis-generator-card {
        box-shadow: none;
        border: 1px solid #000;
    }
}