/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #0c1a30;        /* Deep Navy */
    --primary-light: #172d54;        /* Lighter Navy for hover */
    --accent-blue: #0070f3;          /* Electric Blue */
    --accent-blue-soft: #ebf5ff;     /* Accent blue background */
    --bg-white: #ffffff;
    --bg-main: #f8fafc;              /* Slate-50 soft gray background */
    --text-primary: #1e293b;         /* Dark gray/black */
    --text-muted: #64748b;           /* Muted text color */
    
    /* System Colors */
    --color-success: #10b981;        /* Emerald Green */
    --color-success-bg: #ecfdf5;
    --color-error: #ef4444;          /* Soft red */
    --color-error-bg: #fef2f2;
    --color-warning: #f59e0b;        /* Amber warning */
    --color-warning-bg: #fffbeb;
    --color-inactive: #94a3b8;       /* Slate 400 */
    --color-inactive-bg: #f1f5f9;
    
    /* Layout Constants */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(12, 26, 48, 0.05), 0 4px 6px -2px rgba(12, 26, 48, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(12, 26, 48, 0.08), 0 10px 10px -5px rgba(12, 26, 48, 0.04);
    --shadow-glow: 0 0 40px rgba(0, 112, 243, 0.15);
    
    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-blur: 12px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Glow Blobs */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
}

.bg-glow-1 {
    background-color: #0070f3;
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    background-color: #38bdf8;
    bottom: -200px;
    left: -200px;
}

/* Main Container Layout */
.app-container {
    width: 100%;
    max-width: 900px;
    padding: 2.5rem 1.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
    justify-content: space-between;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.main-header {
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    margin-bottom: 1.25rem;
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(226,232,240,0.5));
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.company-logo {
    height: 64px;
    object-fit: contain;
    display: block;
}

.portal-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.portal-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ==========================================================================
   General Card Styles (Glassmorphism UI)
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius-lg);
}

.card {
    padding: 2.5rem;
    width: 100%;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Search Card Component
   ========================================================================== */
.search-card {
    animation: fadeInUp 0.8s ease-out;
}

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

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    background-color: var(--accent-blue-soft);
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-full);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 112, 243, 0.15);
}

.icon-secure {
    width: 12px;
    height: 12px;
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form elements */
.search-form-group {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
    pointer-events: none;
}

#employeeIdInput {
    width: 100%;
    height: 56px;
    padding: 0 3.25rem 0 3.125rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: var(--border-radius-md);
    border: 1.5px solid #e2e8f0;
    background-color: var(--bg-white);
    color: var(--primary-color);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

#employeeIdInput:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.1);
    background-color: var(--bg-white);
}

#employeeIdInput:focus + .search-icon {
    color: var(--accent-blue);
}

/* Button Design */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 56px;
    padding: 0 2rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(1px);
}

.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow-icon {
    transform: translateX(4px);
}

/* Formatting validation feedback */
.format-feedback {
    margin-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.format-feedback.error-message {
    color: #b91c1c;
    background-color: #fef2f2;
    border: 1px solid #fee2e2;
}

.format-feedback.success-message {
    color: #047857;
    background-color: #ecfdf5;
    border: 1px solid #d1fae5;
}

.hidden {
    display: none !important;
}

/* Recent Searches list */
.recent-searches-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.5s ease-out;
}

.recent-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.recent-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.recent-badge:hover {
    background-color: var(--accent-blue-soft);
    color: var(--accent-blue);
    border-color: rgba(0, 112, 243, 0.2);
    transform: translateY(-1px);
}

.recent-badge:active {
    transform: translateY(0);
}

/* ==========================================================================
   Loading Spinner Component
   ========================================================================== */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    animation: fadeIn 0.3s ease-out;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   Suspicious Activity Alerts & Badges
   ========================================================================== */
.alert-banner {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-md);
    margin: 1rem 0;
    animation: shake 0.5s ease;
    border: 1px solid;
}

.warning-banner {
    background-color: var(--color-warning-bg);
    border-color: #fde68a;
    color: #92400e;
}

.alert-icon-wrapper {
    flex-shrink: 0;
}

.alert-icon {
    width: 24px;
    height: 24px;
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.alert-desc {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ==========================================================================
   Results Container & Cards (Success / Error States)
   ========================================================================== */
#resultsWrapper {
    width: 100%;
}

.result-card {
    width: 100%;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Watermark backdrop */
.watermark {
    position: absolute;
    right: -40px;
    bottom: -40px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(15, 117, 224, 0.03);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
    z-index: 1;
}

.verified-card {
    border-top: 6px solid var(--color-success);
}

.error-card {
    border-top: 6px solid var(--color-error);
}

/* Card Ribbon / Badge Headers */
.result-status-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    width: fit-content;
    margin: 0 auto 2rem auto;
}

.result-status-header.verified {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.result-status-header.error {
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.icon-status {
    width: 16px;
    height: 16px;
}

/* Error design specifications */
.error-details {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-error);
}

.error-message {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.error-action-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Verified Metadata Layout Grid */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.25rem;
    position: relative;
    z-index: 2;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.grid-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.grid-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Full Width Grid Item (e.g. Employee Name) */
.grid-item-full {
    grid-column: span 2;
}

.employee-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Badges for status */
.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-full);
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid;
}

.status-badge.active {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border-color: rgba(16, 185, 129, 0.2);
}

.status-badge.completed {
    background-color: var(--accent-blue-soft);
    color: var(--accent-blue);
    border-color: rgba(0, 112, 243, 0.2);
}

.status-badge.terminated {
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border-color: rgba(239, 68, 68, 0.2);
}

.status-badge.inactive {
    background-color: var(--color-inactive-bg);
    color: var(--color-inactive);
    border-color: rgba(148, 163, 184, 0.2);
}

/* Certificate Footer verification stamp signature */
.verification-stamp-footer {
    border-top: 1px dashed #e2e8f0;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.stamp-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stamp-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.stamp-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.digital-signature {
    font-weight: 700;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   Security Lockout Screen Overlay (Rules 2 & 4)
   ========================================================================== */
.lockout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(12, 26, 48, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.lockout-card {
    max-width: 500px;
    padding: 3rem 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.25);
    background: rgba(255, 255, 255, 0.95);
    animation: lockoutPulse 2s infinite ease-in-out;
}

.lockout-shield {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--color-error-bg);
    color: var(--color-error);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-shield-alert {
    width: 36px;
    height: 36px;
}

.lockout-card h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.lockout-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    min-width: 200px;
}

.timer-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-error);
    line-height: 1;
}

.timer-unit {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: var(--border-radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-error);
    width: 100%;
    transition: width 1s linear;
}

.lockout-actions {
    margin-top: 1rem;
    width: 100%;
}

.btn-secondary {
    width: 100%;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--border-radius-md);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
/* Trust Features Layout */
.trust-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    animation: slideUpFade 0.8s ease-out;
    width: 100%;
}

.trust-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.75rem;
    border-radius: var(--border-radius-md);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 112, 243, 0.25);
}

.trust-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: rgba(0, 112, 243, 0.08);
    color: var(--accent-blue);
    margin-bottom: 0.25rem;
}

.trust-icon {
    width: 22px;
    height: 22px;
}

.trust-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.trust-feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   Footer Component (Dark Modern Design)
   ========================================================================== */
.main-footer.dark-footer {
    width: 100%;
    background-color: #08090a; /* Premium dark background */
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-top: 1.5rem;
    animation: fadeIn 1s ease-out;
    text-align: left;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand-section {
    flex: 1 2 350px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    height: 32px;
    width: 32px;
    object-fit: cover;
    object-position: left;
}

.footer-logo-text {
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.text-green {
    color: #00b87c; /* Brand Accent Green */
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8; /* Muted Slate */
    max-width: 320px;
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.social-btn:hover {
    background-color: rgba(0, 184, 124, 0.1);
    border-color: #00b87c;
    color: #00b87c;
    transform: translateY(-3px);
}

.social-svg {
    width: 18px;
    height: 18px;
}

.footer-links-grid {
    flex: 2 1 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    min-width: 280px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.footer-link {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    width: fit-content;
}

.footer-link:hover {
    color: #00b87c;
    transform: translateX(3px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-copyright {
    font-weight: 500;
}

.footer-lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-lang:hover {
    color: #ffffff;
}

.globe-icon {
    font-size: 1rem;
}

/* ==========================================================================
   Keyframes & Animations
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes lockoutPulse {
    0%, 100% { box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.25); }
    50% { box-shadow: 0 25px 50px -12px rgba(239, 68, 68, 0.45); }
}

.shake-input {
    animation: shake 0.5s ease;
    border-color: var(--color-error) !important;
}

/* ==========================================================================
   Media Queries for Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .app-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .portal-title {
        font-size: 1.75rem;
    }
    
    .portal-subtitle {
        font-size: 1rem;
    }
    
    .card {
        padding: 1.75rem;
    }
    
    .search-form-group {
        flex-direction: column;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    .employee-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid-item-full {
        grid-column: span 1;
    }
    
    .employee-name {
        font-size: 1.35rem;
    }
    
    .verification-stamp-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .trust-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
    
    .main-footer.dark-footer {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.25rem 1rem;
    }
    
    .recent-searches-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Visibility / Masking Toggles */
.btn-toggle-mask {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.btn-toggle-mask:hover {
    color: var(--accent-blue);
    background-color: rgba(0, 112, 243, 0.06);
}

.btn-toggle-mask svg {
    width: 20px;
    height: 20px;
}

.grid-value-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-toggle-display-mask {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-toggle-display-mask:hover {
    color: var(--accent-blue);
    background-color: rgba(0, 112, 243, 0.05);
}

.btn-toggle-display-mask svg {
    width: 16px;
    height: 16px;
}
