/* Admin Panel Custom Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
}

.table th {
    font-weight: 600;
}

.btn {
    border-radius: 0.375rem;
}

.alert {
    border-radius: 0.375rem;
}

.form-control {
    border-radius: 0.375rem;
}

/* Sidebar navigation */
.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

/* Dashboard stats */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Course Materials Section */
.course-materials-section {
    margin-top: 2rem;
}

.course-materials-section .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.course-materials-section .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover {
    border-color: #0d6efd;
    background-color: #e9f7fe;
}

.drop-zone.dragover {
    border-color: #0d6efd;
    background-color: #dbeafe;
    transform: scale(1.02);
}

.drop-zone-input {
    display: none;
}

/* New File Indicators */
.new-file-tag {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.new-file-item {
    display: block;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
}

.new-file-item .file-name {
    flex-grow: 1;
}

.new-file-item .remove-btn {
    margin-left: 1rem;
}

/* File Status Indicators */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-processed {
    background-color: #d4edda;
    color: #155724;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* New Files Preview */
.new-files-preview {
    margin-top: 1rem;
}

.new-files-list {
    margin-top: 0.5rem;
}

/* Directory structure for file display */
.new-file-item .file-directory {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.new-file-item .file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.new-file-item .file-info .file-name {
    flex-grow: 1;
    margin-left: 1rem;
}

.new-file-item .file-info .new-file-tag {
    margin-left: 1rem;
    white-space: nowrap;
}

.new-file-item .file-info .remove-btn {
    margin-left: 1rem;
    white-space: nowrap;
}

/* Ensure consistent width for file items */
.new-files-list {
    display: flex;
    flex-direction: column;
}