/**
 * Employee Verification Page - Premium Design
 * Deep Tech Aesthetic with Modern Animations
 */

/* ===== Hero Section ===== */
.verify-hero {
    background: linear-gradient(135deg, #0a192f 0%, #112240 50%, #1d2d50 100%);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.verify-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(136, 146, 176, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.verify-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.verify-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2) 0%, rgba(100, 255, 218, 0.05) 100%);
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 3s ease-in-out infinite;
}

.verify-icon svg {
    color: #64ffda;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.5));
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 40px rgba(100, 255, 218, 0.5);
        transform: scale(1.05);
    }
}

.verify-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e6f1ff 0%, #64ffda 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verify-hero p {
    font-size: 1.2rem;
    color: #8892b0;
    line-height: 1.6;
}

/* ===== Scanner Section ===== */
.scanner-section {
    padding: 80px 20px;
    background: #0a192f;
}

/* ===== Verification Result Cards ===== */
.verification-result {
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    animation: fadeIn 0.8s ease-out;
}

.status-badge.success {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.2) 0%, rgba(100, 255, 218, 0.1) 100%);
    border: 2px solid #64ffda;
    color: #64ffda;
    box-shadow: 0 10px 40px rgba(100, 255, 218, 0.3);
}

.status-badge.error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

.status-badge i {
    font-size: 1.5rem;
}

/* ===== Employee Card ===== */
.employee-card {
    background: linear-gradient(135deg, #112240 0%, #1d2d50 100%);
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 24px;
    padding: 60px 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.employee-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64ffda 0%, #4dd9b8 100%);
}

.employee-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(100, 255, 218, 0.3);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.2);
    background: rgba(100, 255, 218, 0.05);
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
}

.photo-placeholder i {
    font-size: 4rem;
    color: rgba(100, 255, 218, 0.5);
}

.employee-info {
    text-align: center;
}

.employee-info h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #e6f1ff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.employee-info .position {
    font-size: 1.2rem;
    color: #64ffda;
    font-weight: 600;
    margin-bottom: 35px;
    line-height: 1.4;
}

/* ===== Info Grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: left;
}

.info-item:hover {
    border-color: rgba(100, 255, 218, 0.3);
    background: rgba(10, 25, 47, 0.8);
    transform: translateY(-2px);
}

.info-item i {
    font-size: 1.5rem;
    color: #64ffda;
    min-width: 24px;
    flex-shrink: 0;
}

.info-item>div {
    flex: 1;
    min-width: 0;
}

.info-item .label {
    display: block;
    font-size: 0.75rem;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.info-item .value {
    display: block;
    font-size: 1rem;
    color: #e6f1ff;
    font-weight: 600;
    word-wrap: break-word;
}

.status-active {
    color: #64ffda !important;
}

/* ===== Verification Footer ===== */
.verification-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    text-align: center;
}

.verification-footer i {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 15px;
}

.verification-footer p {
    color: #8892b0;
    margin: 8px 0;
}

.verification-footer strong {
    color: #64ffda;
}

.verification-footer .timestamp {
    font-size: 0.9rem;
    color: #8892b0;
}

/* ===== Error Card ===== */
.error-card {
    background: linear-gradient(135deg, #1d1d2e 0%, #2a2a3e 100%);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 24px;
    padding: 50px;
    text-align: center;
}

.error-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon i {
    font-size: 3rem;
    color: #ff6b6b;
}

.error-card h2 {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.error-card>p {
    font-size: 1.1rem;
    color: #8892b0;
    margin-bottom: 30px;
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    color: #8892b0;
    margin-bottom: 15px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(100, 255, 218, 0.1);
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    color: #64ffda;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(100, 255, 218, 0.2);
    border-color: #64ffda;
    transform: translateY(-2px);
}

/* ===== Scanner Container ===== */
.scanner-container {
    max-width: 700px;
    margin: 0 auto;
}

.scanner-box {
    background: linear-gradient(135deg, #112240 0%, #1d2d50 100%);
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.scanner-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #64ffda 0%, #4dd9b8 100%);
    z-index: 10;
}

/* Initial State & Error State */
.scanner-initial-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#qr-reader {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    /* Reset padding for the actual video */
}

/* Customize html5-qrcode elements */
#qr-reader__scan_region {
    background: #000;
}

#qr-reader__dashboard_section_csr button {
    background: transparent;
    border: 1px solid rgba(100, 255, 218, 0.5);
    color: #64ffda;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    margin-top: 10px;
}

#qr-reader__dashboard_section_csr button:hover {
    background: rgba(100, 255, 218, 0.1);
}

#qr-reader__dashboard_section_swaplink {
    text-decoration: none;
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* ===== Manual Input ===== */
.manual-input {
    text-align: center;
    margin-top: 40px;
}

.toggle-manual {
    background: transparent;
    border: 2px solid rgba(100, 255, 218, 0.3);
    color: #64ffda;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.toggle-manual:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: #64ffda;
    transform: translateY(-2px);
}

#manual-input-form {
    margin-top: 30px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 16px;
    padding: 30px;
}

#manual-input-form .form-group {
    margin-bottom: 20px;
}

#manual-input-form label {
    display: block;
    color: #e6f1ff;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
}

#manual-input-form input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(10, 25, 47, 0.8);
    border: 2px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    color: #e6f1ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#manual-input-form input:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: linear-gradient(135deg, #112240 0%, #1d2d50 100%);
    border: 2px solid rgba(100, 255, 218, 0.1);
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.15);
}

.feature-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #64ffda 0%, #4dd9b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #e6f1ff;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #8892b0;
    line-height: 1.6;
}

/* ===== Action Buttons ===== */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ===== Alerts ===== */
.alert {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(255, 107, 107, 0.15);
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
}

.alert i {
    font-size: 1.5rem;
}

.alert p {
    margin: 0;
    flex: 1;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .verify-hero {
        padding: 80px 20px 60px;
    }

    .verify-hero h1 {
        font-size: 2rem;
    }

    .verify-hero p {
        font-size: 1rem;
    }

    .employee-card {
        padding: 30px 20px;
    }

    .employee-info h2 {
        font-size: 1.8rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .error-card,
    .scanner-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .verify-hero h1 {
        font-size: 1.6rem;
    }

    .employee-photo {
        width: 120px;
        height: 120px;
    }

    .status-badge {
        font-size: 0.95rem;
        padding: 12px 24px;
    }
}