/* =================================================================
   PRACTICE MANAGEMENT — Trang Quản Lý Ôn Tập (GV)
   ================================================================= */

.practice-mgmt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.practice-mgmt-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color, #1e293b);
    margin: 0;
}

.practice-mgmt-header .header-actions {
    display: flex;
    gap: 0.75rem;
}

.practice-mgmt-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.practice-mgmt-filters .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.practice-mgmt-filters .filter-group label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

.practice-mgmt-filters .filter-group select,
.practice-mgmt-filters .filter-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 140px;
}

.practice-mgmt-table-wrapper {
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow-x: auto;
}

.practice-mgmt-table {
    width: 100%;
    border-collapse: collapse;
}

.practice-mgmt-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}

.practice-mgmt-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #334155;
}

.practice-mgmt-table tr:hover {
    background: #f8fafc;
}

.practice-mgmt-table .status-active {
    color: #22c55e;
    font-weight: 600;
}

.practice-mgmt-table .status-inactive {
    color: #94a3b8;
}

.practice-mgmt-table .action-btns {
    display: flex;
    gap: 0.5rem;
}

.practice-mgmt-table .action-btns button {
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.practice-mgmt-table .action-btns button:hover {
    background: #f1f5f9;
}

.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sync-badge.synced {
    background: #d1fae5;
    color: #059669;
}

.sync-badge.not-synced {
    background: #fef3c7;
    color: #d97706;
}

/* Create Form Specific */
.practice-form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.practice-form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.practice-form-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #6366f1;
    display: inline-block;
}

.practice-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.practice-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.practice-form-group label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

.practice-form-group input,
.practice-form-group select,
.practice-form-group textarea {
    padding: 0.6rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.practice-form-group input:focus,
.practice-form-group select:focus,
.practice-form-group textarea:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Question Block in Create Form */
.practice-q-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.practice-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    cursor: grab;
}

.practice-q-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #334155;
}

.practice-q-body {
    padding: 1rem;
}

.practice-q-body .form-group {
    margin-bottom: 0.75rem;
}

.practice-q-body .solution-group {
    background: #eff6ff;
    border: 1px dashed #93c5fd;
    padding: 0.75rem;
    border-radius: 8px;
}

.practice-q-body .solution-group label {
    color: #2563eb;
    font-weight: 600;
}

@media (max-width: 768px) {
    .practice-mgmt-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .practice-form-row {
        grid-template-columns: 1fr;
    }
}
