/* Attendance Monitoring System - Simple Login-style Design */

/* Date time display */
.ams-date-time {
    text-align: center;
    margin-top: 15px;
    font-size: 1rem;
    /* color: rgba(255, 255, 255, 0.8); */
}

/* Camera Section */


.ams-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.ams-panel {
    flex: 1 1 360px;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.ams-panel-camera {
    flex: 1 1 420px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ams-panel-details {
    flex: 1 1 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ams-qr-container {
    /* background: #0f172a; */
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.3);
    position: relative;
    min-height: 320px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrVideo {
    width: 100%;
    /* max-width: 320px; */
    height: auto;
    aspect-ratio: 4/3;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    background: #000;
}


.ams-qr-placeholder {
    text-align: center;
    color: white;
    padding: 30px 24px;
}

.ams-qr-placeholder i {
    color: #ffd700;
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.ams-qr-placeholder p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ams-camera-tip {
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
    font-size: 13px;
}

.ams-camera-tip strong {
    display: block;
    margin-bottom: 4px;
}

.ams-camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ams-camera-actions .emp-submit,
.ams-action-buttons .emp-submit {
    flex: 1;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: none;
}

.ams-camera-actions {
    margin-top: 6px;
}

.ams-secondary {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ams-employee-display {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.ams-employee-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: #0f172a;
    border: 2px solid #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto;
}

.ams-employee-avatar img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.ams-employee-avatar span {
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.ams-employee-meta h3 {
    margin: 4px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ams-employee-meta p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #475569;
}

.ams-employee-status {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #38bdf8;
    text-transform: uppercase;
}

.ams-action-buttons {
    display: flex;
    gap: 12px;
}

.ams-recent-scans {
    background: rgba(8, 22, 48, 0.4);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 20px;
    width: 100%;
}

.ams-manual-input .emp-field {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}

.ams-manual-input .emp-field input {
    flex: 1;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 12px 14px;
    box-shadow: none;
}

.ams-manual-input .emp-field input:focus {
    border: none;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.ams-manual-input #manualSubmitBtn {
    width: auto;
    border-radius: 0;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #1e3c72;
}

.ams-manual-input #manualSubmitBtn i {
    font-size: 1rem;
}

.ams-section-title h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.ams-section-title p {
    margin: 4px 0 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.ams-recent-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.ams-recent-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    flex: 0 0 calc(16.666% - 8.33px); /* 6 cards per row */
    max-width: 90px;
    min-height: 96px;
    aspect-ratio: 1;
}

.ams-recent-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.ams-recent-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.ams-recent-card span {
    position: absolute;
    bottom: 4px;
    left: 6px;
    right: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.ams-recent-empty {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Employee Output */

/* System Response */
.emp-response-icon {
    text-align: center;
    margin-bottom: 10px;
}

.emp-response-icon i {
    font-size: 2.5rem;
}

.emp-response-icon .fa-check-circle {
    color: #28a745;
}

.emp-response-icon .fa-exclamation-triangle {
    color: #ffc107;
}

.emp-response-icon .fa-times-circle {
    color: #dc3545;
}

.emp-response-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.emp-response-time {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Toast Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ams-content {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .ams-camera-actions {
        flex-direction: column;
    }

    .ams-camera-actions .emp-submit,
    .ams-action-buttons .emp-submit {
        width: 100%;
    }

    .ams-employee-display {
        flex-direction: column;
        text-align: center;
    }
    
    .ams-employee-avatar {
        width: 64px;
        height: 64px;
    }
}
