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

.card {
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.qr-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code {
    padding: 10px;
    background: white;
    display: inline-block;
    border: 1px solid #ddd;
}

.student-card {
    margin-bottom: 15px;
    border-radius: 8px;
}

.scanner-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
}

#reader-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

#preview {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 3px solid #28a745;
    border-radius: 8px;
    background-color: #f8f9fa;
}

#scan-result {
    margin-top: 10px;
    text-align: center;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.success-scan {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    display: none;
}

.dashboard-card {
    border-left: 5px solid #007bff;
}

.attendance-table {
    font-size: 0.9rem;
}

.attendance-present {
    background-color: #d4edda !important;
}

.attendance-absent {
    background-color: #f8d7da !important;
}

.dual-language-name .english-name {
    font-weight: bold;
}

.dual-language-name .sinhala-name {
    font-size: 0.9em;
    color: #6c757d;
}

/* QR Code Alignment Marker Styles */
#qr-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px dashed #28a745;
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
    box-shadow: none;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Pulsing animation for the QR marker */
.qr-marker-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Crosshair styles */
.crosshair-h, .crosshair-v {
    position: absolute;
    background-color: rgba(40, 167, 69, 0.5);
}

.crosshair-h {
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    transform: translateY(-50%);
}

.crosshair-v {
    left: 50%;
    top: 10%;
    height: 80%;
    width: 2px;
    transform: translateX(-50%);
}

#qr-marker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: none;
}

#qr-marker .corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border-width: 5px;
    border-color: rgba(40, 167, 69, 0.9);
}

#qr-marker .corner-tl {
    top: 0;
    left: 0;
    border-top: 4px solid #28a745;
    border-left: 4px solid #28a745;
    border-top-left-radius: 8px;
}

#qr-marker .corner-tr {
    top: 0;
    right: 0;
    border-top: 4px solid #28a745;
    border-right: 4px solid #28a745;
    border-top-right-radius: 8px;
}

#qr-marker .corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 4px solid #28a745;
    border-left: 4px solid #28a745;
    border-bottom-left-radius: 8px;
}

#qr-marker .corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 4px solid #28a745;
    border-right: 4px solid #28a745;
    border-bottom-right-radius: 8px;
} 