/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Card customization */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: rgba(0, 123, 255, 0.1);
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
    font-weight: 600;
}

/* Form styles */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
}

/* Table styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table thead th {
    background-color: rgba(0, 123, 255, 0.1);
    border-bottom: 2px solid rgba(0, 123, 255, 0.2);
}

/* Button styles */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
}

.btn-icon i {
    margin-right: 5px;
}

/* Alert customization */
.alert {
    border-radius: 8px;
    border: none;
}

/* Dashboard cards */
.dashboard-card {
    padding: 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.dashboard-card .card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.dashboard-card .count {
    font-size: 30px;
    font-weight: bold;
}

/* Profile page */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Attendance marking */
.webcam-container {
    position: relative;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.webcam-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.face-detection-box {
    position: absolute;
    border: 2px solid #28a745;
    border-radius: 5px;
    pointer-events: none;
}

/* Student card */
.student-card {
    text-align: center;
    margin-bottom: 20px;
}

.student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Attendance report */
.attendance-percentage {
    font-size: 18px;
    font-weight: bold;
}

/* Custom badges */
.badge.bg-present {
    background-color: #28a745;
}

.badge.bg-absent {
    background-color: #dc3545;
}

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

/* Footer */
footer {
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .dashboard-card {
        margin-bottom: 20px;
    }
    
    .student-photo {
        width: 80px;
        height: 80px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
}

/* Utility classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Attendance gauge (student dashboard / reports) */
.attendance-gauge {
    width: 176px;
    height: 176px;
    border-radius: 50%;
    background: conic-gradient(
        var(--gauge-color, #198754) calc(var(--pct, 0) * 3.6deg),
        #e9ecef 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.attendance-gauge-inner {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.06);
}

.attendance-gauge-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: #212529;
}

.attendance-gauge-label {
    font-size: 0.72rem;
    color: #6c757d;
    margin-top: 4px;
    text-align: center;
    padding: 0 8px;
}
