.panel-primary > .panel-heading {
    background-color: #3498db;
    border-color: #3498db;
}

.table > thead > tr > th {
    background-color: #d9edf7;
    font-weight: bold;
}

.media-object {
    border: 2px solid #ddd;
}

.btn-info {
    background-color: #5bc0de;
    border-color: #46b8da;
}

.alert-info {
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.cung-hoc-page {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 20px 0;
}
/* Sidebar */
.sidebar-left {
    background: white;
    padding: 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    min-height: 100vh;
}

.sidebar-title {
    background: linear-gradient(135deg, #667eea 0%, #acb85c 100%);
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.unit-list {
    padding: 10px 0;
}

.unit-item {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s;
    font-size: 15px;
}

.unit-item:hover {
    
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
/* Main Content */
.main-content {
    padding: 20px;
}

.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.unit-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin: 0;
    font-weight: bold;
}

/* Progress Bar */
.progress-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.progress-label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.progress-bar-container {
    flex: 1;
    background: white;
    border-radius: 25px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.progress-bar-custom {
    display: flex;
    height: 30px;
    border-radius: 20px;
    overflow: hidden;
}

.progress-segment {
    transition: width 0.5s ease;
}

.progress-segment.chua-dat { background: #ec407a; }
.progress-segment.kha { background: #ff9800; }
.progress-segment.dat { background: #ffeb3b; }
.progress-segment.tot { background: #4caf50; }

/* Legend */
.legend {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-left: 50px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.chua-dat { background: #ec407a; }
.legend-color.kha { background: #ff9800; }
.legend-color.dat { background: #ffeb3b; }
.legend-color.tot { background: #4caf50; }

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.stat-box i {
    font-size: 36px;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    border-left: 4px solid #667eea;
    padding-left: 15px;
    margin: 30px 0 20px 0;
}
/* Loại câu hỏi section */
.loai-cauhoi-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.loai-title {
    color: #667eea;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.loai-title .badge {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    margin-left: 10px;
}

/* Câu hỏi grid */
.cauhoi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.cauhoi-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cauhoi-card:hover {
    background: #f0e7ff;
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.cauhoi-card.excellent { border-color: #4caf50; background: #e8f5e9; }
.cauhoi-card.good { border-color: #ffeb3b; background: #fffde7; }
.cauhoi-card.average { border-color: #ff9800; background: #fff3e0; }
.cauhoi-card.poor { border-color: #f44336; background: #ffebee; }

/* Video Card */
.cauhoi-card.video-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-color: #2196f3;
}

.cauhoi-card.video-card:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e1bee7 100%);
    border-color: #1976d2;
}

.cauhoi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cauhoi-number {
    font-weight: bold;
    color: #667eea;
    font-size: 14px;
}

.cauhoi-type {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.cauhoi-content {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    min-height: 40px;
}

.cauhoi-score {
    font-size: 13px;
    color: #ff9800;
    font-weight: 600;
}

.cauhoi-score i {
    color: #ffc107;
}

.cauhoi-status {
    font-size: 12px;
    font-weight: 600;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.cauhoi-card.excellent .cauhoi-status { color: #4caf50; }
.cauhoi-card.good .cauhoi-status { color: #8bc34a; }
.cauhoi-card.average .cauhoi-status { color: #ff9800; }
.cauhoi-card.poor .cauhoi-status { color: #f44336; }

/*Nộp bài*/
.result-page {
    background: #f7f9fc;
    padding: 50px 0;
    text-align: center;
    font-family: Arial, sans-serif;
}
.result-box {
    background: white;
    margin: auto;
    max-width: 700px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.result-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}
.result-meta {
    color: #555;
    font-size: 15px;
    margin-bottom: 25px;
}
.score {
    font-size: 70px;
    font-weight: bold;
    color: #ff0066;
    margin: 20px 0;
}
.btn-area {
    margin-top: 30px;
}
/*.btn-area .btn {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    margin: 5px;
}*/

.btn-custom-view {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}
.btn-custom-redo {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}
.btn-custom-next {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(23, 162, 184, 0.2);
    transition: all 0.3s ease;
}
.btn-custom-view:hover, .btn-custom-redo:hover, .btn-custom-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
}
.btn-area a {
    margin-right: 8px; /* Khoảng cách giữa các nút */
    border-radius: 6px; /* Bo góc nhẹ nhìn sẽ mềm mại hơn */
}