/* ==========================================================================
   CSS Variables & Typography
   ========================================================================== */
   :root {
    --bg-primary: #050508;
    --bg-secondary: #0c0d12;
    --accent-turquoise: #00d2ff;
    --accent-purple: #9d4ede;
    --accent-green: #06d6a0;
    --text-primary: #ffffff;
    --text-secondary: #a0a4b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --gradient-accent: linear-gradient(135deg, var(--accent-turquoise) 0%, var(--accent-purple) 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(rgba(5, 5, 8, 0.85), rgba(5, 5, 8, 0.85)), url('assets/bg_back_v.jpg') center/cover no-repeat fixed;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-main {
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .logo-main {
        height: 120px;
    }
}

.portal-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.content-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ==========================================================================
   Card Component (Glassmorphism)
   ========================================================================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

/* ==========================================================================
   Verification Badge
   ========================================================================== */
.verification-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.shield {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(6, 214, 160, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
}

.shield::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-green);
    animation: scalePulse 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.checkmark {
    width: 32px;
    height: 32px;
    stroke: var(--accent-green);
    stroke-width: 3;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent-green);
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.verification-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Employee Info
   ========================================================================== */
.employee-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--accent-turquoise);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.employee-real-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.photo-placeholder svg {
    width: 48px;
    height: 48px;
}

.info-group {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

.employee-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 2.2rem; /* For typing effect */
}

.employee-position {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.employee-department {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.status-item {
    grid-column: span 2;
    align-items: center;
    padding-top: 0.5rem;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
}

.id-value {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    margin-right: 0.5rem;
    box-shadow: 0 0 8px var(--accent-green);
}

/* ==========================================================================
   Error & Welcome States
   ========================================================================== */
.error-card, .welcome-card {
    text-align: center;
    padding: 3rem 2rem;
}

.error-card::before {
    background: #ef476f;
}

.error-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 71, 111, 0.1);
    color: #ef476f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.error-icon svg {
    width: 32px;
    height: 32px;
}

.error-title, .welcome-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.error-title {
    color: #ef476f;
}

.error-desc, .welcome-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.scan-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card-border);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.scan-icon svg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    margin-top: 3rem;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.bricht-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    line-height: 40px;
}

.copyright {
    font-size: 0.75rem;
    color: rgba(160, 164, 184, 0.5);
}

@media (min-width: 480px) {
    .footer-logos {
        gap: 2rem;
    }
    .footer-logo {
        height: 50px;
    }
    .bricht-text {
        font-size: 1.75rem;
        line-height: 50px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scalePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 214, 160, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 214, 160, 0);
    }
}

/* Typing indicator cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--accent-turquoise);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
