/* Dosen Dashboard Styles */
.main-content {
    margin-left: 250px;
    padding: 20px;
}

.welcome-message {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin-top: 0;
    color: #555;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0 0;
    color: #2c3e50;
}

/* Table Styles */
.schedule-table, .attendance-table, .history-table, .grades-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.schedule-table th, .schedule-table td,
.attendance-table th, .attendance-table td,
.history-table th, .history-table td,
.grades-table th, .grades-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.schedule-table th, 
.attendance-table th, 
.history-table th,
.grades-table th {
    background-color: #2c3e50;
    color: white;
}

.schedule-table tr:hover, 
.attendance-table tr:hover,
.history-table tr:hover,
.grades-table tr:hover {
    background-color: #f5f5f5;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-submit {
    background-color: #2c3e50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #1a252f;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100%;
    padding: 20px 0;
}

.profile {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.profile h3 {
    margin: 10px 0 5px;
}

.profile p {
    font-size: 14px;
    color: #b8c7ce;
}

.menu {
    list-style: none;
    padding: 0;
}

.menu li a {
    display: block;
    padding: 12px 20px;
    color: #b8c7ce;
    text-decoration: none;
    transition: all 0.3s;
}

.menu li a:hover, 
.menu li a.active {
    background: #1a252f;
    color: white;
}

.menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Sidebar Kiri */
.admin-sidebar-left {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: #2c3e50;
    color: #fff;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Brand/Logo */
.sidebar-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon {
    font-size: 24px;
    margin-right: 10px;
    color: #4e73df;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
}

/* Menu Items */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #b8c7ce;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left: 3px solid #4e73df;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left: 3px solid #4e73df;
}

.menu-icon {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    font-size: 16px;
}

.menu-text {
    flex: 1;
    font-size: 14px;
}

.menu-arrow {
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.2s;
}

.menu-item:hover .menu-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Footer */
.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    font-size: 36px;
    margin-right: 10px;
    color: #4e73df;
}

.user-details {
    line-height: 1.3;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar-left {
        left: -250px;
    }
    
    .admin-sidebar-left.show {
        left: 0;
    }
}


/* Sidebar styling */
.col-auto {
    min-height: 100vh;
    position: sticky;
    top: 0;
}

/* Main content area */
.col.py-3 {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.2s;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* List group items */
.list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 1rem 1.25rem;
}

.list-group-item:first-child {
    border-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flex-nowrap {
        flex-wrap: wrap !important;
    }
    
    .col-auto {
        min-height: auto;
        width: 100%;
        position: relative;
    }
}