/* =========================================
   PROJECT MANAGEMENT STYLES
   Styles for lesson project workflow
   ========================================= */

/* ========== PROJECT STATUS BADGE ========== */
.project-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-status-badge.status-draft {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.project-status-badge.status-lesson_created {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.project-status-badge.status-worksheet_created {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.project-status-badge.status-graded {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.project-status-badge.status-completed {
    background: #e0e7ff;
    color: #6366f1;
    border: 1px solid #a5b4fc;
}

/* ========== PROJECT CARD IN LIBRARY ========== */
.project-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981, #34d399);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.project-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
    line-height: 1.4;
}

.project-status {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-status.status-draft {
    background: #f3f4f6;
    color: #6b7280;
}

.project-status.status-lesson_created {
    background: #dbeafe;
    color: #2563eb;
}

.project-status.status-worksheet_created {
    background: #fef3c7;
    color: #d97706;
}

.project-status.status-graded {
    background: #dcfce7;
    color: #16a34a;
}

.project-status.status-completed {
    background: #e0e7ff;
    color: #6366f1;
}

.project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 14px;
    color: #6b7280;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-meta i {
    color: #10b981;
}

.project-progress {
    margin: 16px 0;
}

.progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.btn-sm {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-sm.btn-primary {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.btn-sm.btn-primary:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-sm.btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.btn-sm.btn-danger:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.project-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.project-footer small {
    color: #9ca3af;
    font-size: 12px;
}

/* ========== GRADING RESULTS ========== */
.grading-summary {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.grading-summary h4 {
    margin: 0 0 8px 0;
    color: #166534;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.grading-summary .average-score {
    margin: 0;
    font-size: 16px;
    color: #15803d;
}

.grading-summary .average-score strong {
    font-size: 24px;
    color: #16a34a;
}

.grading-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grading-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.grading-item:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.grading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.grading-header h5 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-badge {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.grading-image {
    margin: 16px 0;
    text-align: center;
}

.grading-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.grading-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-section,
.strengths-section,
.improvements-section {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.feedback-section h6,
.strengths-section h6,
.improvements-section h6 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-section p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.strengths-section {
    border-left-color: #10b981;
}

.improvements-section {
    border-left-color: #f59e0b;
}

.strengths-section ul,
.improvements-section ul {
    margin: 0;
    padding-left: 20px;
}

.strengths-section li,
.improvements-section li {
    margin-bottom: 8px;
    color: #4b5563;
    line-height: 1.5;
}

.grading-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.grading-footer small {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
    margin: 8px 0;
}

.empty-state small {
    font-size: 14px;
    color: #d1d5db;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .project-card {
        padding: 16px;
    }

    .project-header h4 {
        font-size: 16px;
    }

    .project-meta {
        font-size: 13px;
    }

    .project-actions {
        flex-direction: column;
    }

    .btn-sm {
        width: 100%;
        justify-content: center;
    }

    .grading-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .score-badge {
        align-self: flex-start;
    }
}