/* =================================
   ADMIN INTERFACE STYLES
   ================================= */

/* Admin Table Framework */
.admin-container {
    background: #f8fafc;
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.admin-header {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.admin-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Search and Filter Bar */
.admin-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.admin-filters-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
    min-width: 200px;
}

.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Action Bar */
.admin-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.actions-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.actions-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Table Container */
.admin-table-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table th.text-center {
    text-align: center;
}

.admin-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table td {
    padding: 1rem 1.5rem;
    color: #374151;
    font-size: 0.875rem;
    vertical-align: middle;
}

.admin-table td.text-center {
    text-align: center;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.published {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.unpublished {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.admin {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.instructor {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.student {
    background: #d1fae5;
    color: #065f46;
}

/* Action Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

.action-btn-primary {
    background: #3b82f6;
    color: white;
}

.action-btn-primary:hover {
    background: #2563eb;
}

.action-btn-success {
    background: #10b981;
    color: white;
}

.action-btn-success:hover {
    background: #059669;
}

.action-btn-warning {
    background: #f59e0b;
    color: white;
}

.action-btn-warning:hover {
    background: #d97706;
}

.action-btn-danger {
    background: #ef4444;
    color: white;
}

.action-btn-danger:hover {
    background: #dc2626;
}

.action-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.action-btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-star {
    width: 1rem;
    height: 1rem;
}

.rating-star.filled {
    color: #fbbf24;
}

.rating-star.empty {
    color: #d1d5db;
}

/* Comment Preview */
.comment-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
}

/* Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.pagination-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination-link:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.pagination-link.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-link.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.pagination-link.disabled:hover {
    background: white;
    color: #9ca3af;
}

/* Checkbox Styling */
.admin-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-checkbox:checked {
    background: #3b82f6;
    border-color: #3b82f6;
}

/* Form Controls */
.admin-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Empty State */
.admin-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.admin-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #d1d5db;
}

.admin-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.admin-empty-text {
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-content {
        padding: 0 0.5rem;
    }
    
    .admin-header {
        padding: 1.5rem;
    }
    
    .admin-title {
        font-size: 1.5rem;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-input {
        min-width: auto;
        width: 100%;
    }
    
    .actions-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .actions-left,
    .actions-right {
        justify-content: center;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .comment-preview {
        max-width: 150px;
    }
} 