/* Main Styles */
body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-header {
    font-weight: bold;
}

.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Badge styles */
.badge-display {
    display: inline-block;
    margin: 5px;
    text-align: center;
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Student card */
.student-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.student-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Points badge */
.points-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-weight: bold;
}

.points-positive {
    background-color: #198754;
    color: white;
}

.points-negative {
    background-color: #dc3545;
    color: white;
}

/* Quick record button panel */
.quick-record-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.quick-record-panel .btn {
    margin: 5px;
}

/* Drag and drop */
.draggable {
    cursor: grab;
}

.draggable:active {
    cursor: grabbing;
}

.drop-zone {
    min-height: 100px;
    border: 2px dashed #ced4da;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}

.drop-zone.active {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Login page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-icon {
        font-size: 2rem;
    }
    
    .quick-record-panel {
        bottom: 10px;
        right: 10px;
    }
    
    .quick-record-panel .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Main styles for Class Go system */
.sidebar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.sidebar .list-group-item {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.sidebar .list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.sidebar .list-group-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dashboard stats */
.stats-card {
    border-left: 4px solid #0d6efd;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stats-card.students {
    border-left-color: #0dcaf0;
}

.stats-card.classes {
    border-left-color: #198754;
}

.stats-card.records {
    border-left-color: #6f42c1;
}

.stats-card.badges {
    border-left-color: #fd7e14;
}

/* Responsive classes */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        padding: 20px 0;
        overflow-x: hidden;
        overflow-y: auto;
        width: 280px;
        max-width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
} 