/* ==================== ФУНКЦИОНАЛЬНАЯ ГРАМОТНОСТЬ ==================== */
.functional-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f5e9 0%, #f3e5f5 100%);
    padding: 40px 20px;
}

.functional-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================== СОЗДАНИЕ ЗАДАНИЯ ==================== */
.functional-creator {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.creator-header {
    text-align: center;
    margin-bottom: 50px;
}

.creator-header i {
    font-size: 4rem;
    color: #43a047;
    margin-bottom: 20px;
}

.creator-title {
    font-size: 3rem;
    background: linear-gradient(135deg, #43a047 0%, #8e24aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 15px;
}

.creator-description {
    font-size: 1.3rem;
    color: #666;
}

.generate-form {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.form-group label i {
    color: #43a047;
    font-size: 1.2rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #43a047;
    box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.btn-generate {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #43a047 0%, #8e24aa 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.btn-generate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(67, 160, 71, 0.3);
}

.btn-generate:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    position: absolute;
    right: 20px;
}

/* ==================== СПИСОК ЗАДАНИЙ ==================== */
.tasks-list {
    margin-top: 50px;
}

.list-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
}

.task-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.task-card:hover {
    border-color: #43a047;
    box-shadow: 0 10px 30px rgba(67, 160, 71, 0.1);
    transform: translateY(-5px);
}

.task-header {
    margin-bottom: 20px;
}

.task-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.task-meta {
    display: flex;
    gap: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.task-class {
    background: #43a047;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.task-date i {
    margin-right: 5px;
    color: #43a047;
}

.task-content {
    background: #f8f9fa;
    border-left: 4px solid #43a047;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #2c3e50;
    max-height: 300px;
    overflow-y: auto;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.btn-copy,
.btn-delete-task {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-copy {
    background: linear-gradient(135deg, #43a047 0%, #66bb6a 100%);
    color: white;
    flex: 1;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 160, 71, 0.3);
}

.btn-copy.copied {
    background: #28a745;
}

.btn-copy.copied i::before {
    content: '\f00c';
}

.btn-delete-task {
    background: #dc3545;
    color: white;
}

.btn-delete-task:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.no-tasks {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    grid-column: 1 / -1;
}

.no-tasks i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-tasks p {
    font-size: 1.3rem;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .functional-page {
        padding: 20px 10px;
    }
    
    .functional-creator {
        padding: 30px 20px;
    }
    
    .creator-title {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .task-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .creator-title {
        font-size: 1.8rem;
    }
    
    .task-content {
        font-size: 0.95rem;
    }
}
