
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #2a2a2a;
    border-right: 1px solid #3a3a3a;
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #3a3a3a;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.om-symbol {
    font-size: 1.8rem;
    color: #ff6b35;
    font-weight: bold;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li {
    margin: 0.25rem 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    border-right-color: #ff6b35;
}

.nav-menu i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    background: #1a1a1a;
    min-height: 100vh;
}

/* Header */
.dashboard-header {
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.upload-btn,
.export-btn,
.refresh-btn {
    background: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.upload-btn:hover,
.export-btn:hover,
.refresh-btn:hover {
    background: #e55a2b;
}

/* Stats Section */
.stats-section {
    padding: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;

.ml-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ml-session-list {
    display: grid;
    gap: 1rem;
}

.ml-session-item {
    background: #1f1f1f;
    border: 1px solid #343434;
    border-radius: 10px;
    padding: 1rem;
}

.ml-session-item h4 {
    margin-bottom: 0.5rem;
    color: #ff6b35;
    font-size: 1rem;
}

.ml-session-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.ml-session-item span {
    color: #888;
    font-size: 0.8rem;
}

.ml-model-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.ml-metric-card {
    background: #1f1f1f;
    border: 1px solid #343434;
    border-radius: 10px;
    padding: 1rem;
}

.ml-metric-card h4 {
    color: #ff6b35;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.ml-metric-card p {
    color: #b0b0b0;
    font-size: 0.85rem;
}
}

.stat-card:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #888;
    font-size: 0.875rem;
}

/* Sections */
.activity-section,
.actions-section,
.monitors-section,
.teachers-section,
.batch-section,
.charts-section,
.bert-section {
    padding: 2rem;
}

.activity-section h2,
.actions-section h2,
.bert-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

/* Activity List */
.activity-list {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #3a3a3a;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    color: #ff6b35;
    font-size: 1.2rem;
}

.activity-time {
    margin-left: auto;
    color: #888;
    font-size: 0.875rem;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    text-align: center;
}

.action-card:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.action-card i {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.action-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: #888;
    font-size: 0.875rem;
}

/* Monitor Cards */
.monitor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.monitor-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.monitor-card:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.monitor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.monitor-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Teacher Grid */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.teacher-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.teacher-card:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

.teacher-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.teacher-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
}

.teacher-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.teacher-prn {
    color: #888;
    font-size: 0.875rem;
}

/* Batch Table */
.batch-table-container {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    overflow: hidden;
}

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

.batch-table th,
.batch-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
}

.batch-table th {
    background: #333;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.batch-table td {
    color: #b0b0b0;
}

.batch-table tr:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-card {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* BERT Results */
.bert-results {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem;
}

.bert-item {
    padding: 1rem 0;
    border-bottom: 1px solid #3a3a3a;
}

.bert-item:last-child {
    border-bottom: none;
}

.bert-comment {
    color: #b0b0b0;
    margin-bottom: 0.5rem;
}

.bert-sentiment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sentiment-positive {
    color: #22c55e;
}

.sentiment-negative {
    color: #ef4444;
}

.sentiment-neutral {
    color: #888;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #2a2a2a;
    margin: 5% auto;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.large-modal {
    max-width: 900px;
}

.modal-header {
    background: #333;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #ff6b35;
}

.modal-body {
    padding: 1.5rem;
}

/* Upload Modal */
.upload-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upload-option h4 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.upload-area {
    border: 2px dashed #3a3a3a;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-style: solid;
}

.upload-area i {
    font-size: 2rem;
    color: #ff6b35;
    margin-bottom: 1rem;
    display: block;
}

.upload-area p {
    color: #888;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.file-hint {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

.file-preview {
    padding: 2rem;
    text-align: center;
}

.file-info {
    margin-bottom: 1.5rem;
}

.file-info h4 {
    color: #fff;
    margin: 0.5rem 0;
    font-size: 1rem;
}

.file-info p {
    color: #888;
    font-size: 0.875rem;
}

.upload-btn-confirm,
.upload-btn-cancel {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0.5rem;
    font-weight: 500;
}

.upload-btn-confirm {
    background: #22c55e;
    color: white;
}

.upload-btn-confirm:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.upload-btn-cancel {
    background: #3a3a3a;
    color: #fff;
}

.upload-btn-cancel:hover {
    background: #4a4a4a;
}

.upload-details {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.upload-details p {
    color: #888;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.upload-details strong {
    color: #fff;
}

.spinner {
    border: 3px solid #3a3a3a;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #3a3a3a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: #ff6b35;
    width: 0%;
    transition: width 0.3s ease;
    animation: loading 2s infinite;
}

/* Form Controls */
input[type="text"],
input[type="search"],
select {
    background: #333;
    border: 1px solid #3a3a3a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
    outline: none;
    border-color: #ff6b35;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loading {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .stats-grid,
    .actions-grid,
    .monitor-cards,
    .teacher-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #2a2a2a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}
