.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    padding: 8px 12px;
    border: 1.5px solid #d1fae5;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #1b4332;
}

.stats {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.stat {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    padding: 4px 12px;
    border-radius: 20px;
    color: #1b4332;
    font-weight: 600;
}

.approved-stat { background: #dcfce7; border-color: #86efac; }
.pending-stat  { background: #fef9c3; border-color: #fde047; color: #713f12; }

/* Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #d1fae5;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

thead th {
    background: #1b4332;
    color: white;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid #f0fdf4;
    transition: background 0.15s;
}

tbody tr:hover { background: #f0fdf4; }
tbody tr.row-approved { background: #f0fdf4; }

td {
    padding: 10px 14px;
    color: #374151;
    vertical-align: middle;
}

td.center { text-align: center; }
td.ref-cell { font-weight: 700; color: #1b4332; }
td.title-cell { max-width: 160px; }
td.loading-cell { text-align: center; padding: 30px; color: #9ca3af; }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-approved   { background: #dcfce7; color: #15803d; }
.badge-pending    { background: #fef9c3; color: #a16207; }
.badge-claude     { background: #ede9fe; color: #5b21b6; }
.badge-openrouter { background: #e0f2fe; color: #0369a1; }

/* Action buttons */
.actions-cell { white-space: nowrap; }

.btn-icon {
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 4px;
    transition: opacity 0.15s;
}

.btn-icon:hover { opacity: 0.8; }
.btn-edit   { background: #dbeafe; color: #1d4ed8; }
.btn-delete { background: #fee2e2; color: #dc2626; }

/* Large modal */
.modal-large {
    width: 85rem;
    max-width: 106vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.btn-approve {
    background: #15803d;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-approve:hover {
    background: #166534;
    transform: translateY(-2px);
}

.btn-unapprove {
    background: #fef3c7;
    color: #92400e;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1.5px solid #fcd34d;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-unapprove:hover {
    background: #fde68a;
    transform: translateY(-2px);
}

/* Lesson edit blocks */
.lesson-edit-block {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 14px;
}

.lesson-edit-title {
    font-weight: 700;
    color: #1b4332;
    margin-bottom: 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lesson-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.lesson-edit-grid input,
.lesson-edit-grid textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
}

.lesson-edit-grid input:focus,
.lesson-edit-grid textarea:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.full-width { grid-column: 1 / -1; }

.takeaway-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 6px;
    box-sizing: border-box;
}

.takeaway-input:focus {
    outline: none;
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.page-info {
    font-size: 13px;
    color: #6b7280;
    margin-right: 8px;
}

.page-dots {
    font-size: 13px;
    color: #9ca3af;
    padding: 0 4px;
}

.page-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1.5px solid #d1fae5;
    border-radius: 6px;
    background: white;
    color: #1b4332;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
    background: #f0fdf4;
    border-color: #2d6a4f;
}

.page-btn.active {
    background: #1b4332;
    color: white;
    border-color: #1b4332;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
