/**
 * Frontend Styles for Employee Attendance & Payroll
 */

.eap-qr-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.eap-qr-display {
    background: #fff;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.eap-qr-display h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

#eap-qr-code {
    margin: 20px auto;
    max-width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    border-radius: 4px;
}

#eap-qr-code canvas {
    display: block;
    margin: 0 auto;
}

.eap-qr-countdown {
    margin-top: 20px;
    color: #666;
}

.eap-qr-countdown strong {
    color: #2271b1;
    font-size: 18px;
}

.eap-scanner {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.eap-scanner video {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    display: block;
    border: 2px solid #2271b1;
    border-radius: 4px;
}

.eap-status-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.eap-status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.eap-status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.eap-status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.eap-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.eap-button:hover {
    background: #135e96;
    color: #fff;
}

.eap-button.success {
    background: #00a32a;
}

.eap-button.success:hover {
    background: #008a20;
}

.eap-button.danger {
    background: #d63638;
}

.eap-button.danger:hover {
    background: #b32d2e;
}

/* Mobile Responsive */
@media screen and (max-width: 600px) {
    .eap-qr-container {
        padding: 10px;
    }
    
    .eap-qr-display {
        padding: 20px;
    }
    
    #eap-qr-code {
        max-width: 100%;
        height: auto;
        min-height: 250px;
    }
}
