.back-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}
.back-link:hover {
    color: #2563eb;
}
.card-section {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    transition: box-shadow 0.2s ease;
}
.card-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.02);
}
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.section-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.form-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}
.form-group-custom {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group-custom label {
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
}
.form-group-custom input, 
.form-group-custom select, 
.form-group-custom textarea {
    padding: 0.65rem 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.925rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.form-group-custom input:focus, 
.form-group-custom select:focus, 
.form-group-custom textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.table-cpp {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.table-cpp th {
    text-align: left;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    color: #475569;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table-cpp td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #edf2f7;
    background-color: #ffffff;
}
.table-cpp tr:last-child td {
    border-bottom: none;
}
.btn-add-cpp {
    background: #eff6ff;
    color: #2563eb;
    border: 1px dashed #bfdbfe;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-add-cpp:hover {
    background: #2563eb;
    color: white;
    border-style: solid;
}
.btn-add-cpp:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
}
.btn-remove-row {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-remove-row:hover {
    background: #ef4444;
    color: white;
}
.input-nilai {
    width: 80px !important;
    text-align: center;
}
.input-grade {
    width: 70px !important;
    text-align: center;
    font-weight: 700;
    background-color: #f8fafc !important;
}
.input-prestasi {
    width: 140px !important;
    font-weight: 700;
    text-align: center;
    background-color: #f8fafc !important;
}
.badge-excellent { background-color: #d1fae5 !important; color: #065f46 !important; border: 1px solid #a7f3d0 !important; }
.badge-good { background-color: #e0f2fe !important; color: #0369a1 !important; border: 1px solid #bae6fd !important; }
.badge-satisfactory { background-color: #fef3c7 !important; color: #78350f !important; border: 1px solid #fde68a !important; }
.badge-need { background-color: #fee2e2 !important; color: #991b1b !important; border: 1px solid #fca5a5 !important; }

.summary-row td {
    background-color: #f8fafc !important;
    font-weight: 700;
    border-top: 2px solid #e2e8f0 !important;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.btn-save {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.925rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-save:hover {
    background: #1d4ed8;
}
.btn-cancel {
    background: #f1f5f9;
    color: #475569;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.925rem;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.btn-suggest-comment {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    align-self: flex-start;
}
.btn-suggest-comment:hover {
    background: #10b981;
    color: white;
}
.limit-warning {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    display: none;
}
