/* DMS v2 Styles */

:root {
    --sidebar-width: 250px;
}

/* Sidebar */
.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    transition: margin 0.3s ease;
}

.sidebar .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

#page-content-wrapper {
    min-width: 0;
}

/* Sidebar collapsed */
.sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-width));
}

/* Cards */
.stat-card {
    border-left: 4px solid;
    transition: transform 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.primary { border-left-color: #0d6efd; }
.stat-card.success { border-left-color: #198754; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.info    { border-left-color: #0dcaf0; }

/* Tables */
.table th {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.table td {
    vertical-align: middle;
}

/* Photo thumbnails */
.photo-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.photo-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.375rem;
}

/* Action buttons */
.btn-actions .btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
}

/* Badge */
.badge-course {
    font-weight: 400;
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        position: fixed;
        z-index: 1050;
    }
    .sidebar.show {
        margin-left: 0;
    }
}

/* Print */
@media print {
    .sidebar, .navbar, .no-print, footer { display: none !important; }
    #page-content-wrapper { width: 100%; }
}
