@import url('https://fonts.googleapis.com/css2?family=Neue+Haas+Grotesk+Display+Pro:wght@600&display=swap');

/* Reset box-sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    padding: 0;
    margin: 0;
}

/* Remove default margin */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

.page-wrapper {
    width: 100vw;
    height: 100vh;
    /* display: flex; */
    /* position: fixed; */
    top: 0;
    left: 0;
}

.face-recognition-title {
    font-family: 'Neue Haas Grotesk Display Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: -0.02em;
    color: #1C5257;
    z-index: 1;
    display: block;
}

.face-recognition-description {
    color: #497579;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    margin-top: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#action-buttons {
    max-width: 411px;
    width: 100%;
}

.banner-side {
    display: none;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.content-side {
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.content-container {
    width: 100%;
    max-width: 411px;
    padding: 1rem;
    position: relative;
    z-index: 3;
}

.hidden {
    display: none !important;
}

#footer {
    display: none;
}

/* Desktop styles */
/* @media (min-width: 1024px) {
    .content-side {
        width: 50%;
        height: 100vh !important;
        align-items: center;
    }

    .mobile-nav {
        display: none !important;
    }

    .page-wrapper {
        display: flex;
    }

    .banner-side {
        display: block;
        width: 50%;
    }

    .banner-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
} */

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

/* Button styles */
.btn {
    padding: 0.75rem 1rem;
    max-width: 411px !important;
    height: 45px;
    border-radius: 24px;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Color utilities */
.text-primary {
    color: #1C5257;
}

.bg-primary {
    background-color: #1C5257;
}

/* Update primary button to use the new color */
.btn-primary {
    background-color: #1C5257;
    color: white;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: #164146;
    /* Slightly darker shade for hover */
}

.btn-secondary {
    background-color: #E8F1F1;
    color: #1C5257;
    margin-top: 20px !important;
}

.btn-secondary:hover {
    background-color: #D8E5E5;
}

/* Verification page specific styles */
.verification-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.camera-viewport {
    width: 281px;
    height: 281px;
    border-radius: 100%;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    border: 4px solid #35DC94;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    z-index: 4;
    transition: border-color 0.2s ease, border-width 0.2s ease;
}

.camera-viewport.ok {
    border-color: #35DC94;
    border-width: 6px;
}

.camera-viewport.bad {
    border-color: #cc3333;
    border-width: 6px;
}

.camera-viewport.error-state {
    border-color: #cc3333 !important;
    border-width: 6px;
}

#kioskHint,
.auto-capture-hint {
    text-align: center;
    color: #497579;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 20px;
}

#kioskCountdownNumber,
.countdown-number-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: 52px;
    min-height: 52px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #35DC94;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    z-index: 12;
    pointer-events: none;
}

#cameraFeed.background-camera {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100vw, 440px);
    height: min(100vh, 440px);
    transform: translate(-50%, -50%) scaleX(-1) !important;
    object-fit: cover;
    background-color: #f5f6fa;
    z-index: 0;
    pointer-events: none;
}

.camera-viewport video {
    display: none;
}

#statusIndicator {
    z-index: 20;
    width: 100%;
    height: 100%;
}

.camera-mask-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    --hole-r: var(--circle-r, 110px);
    background: radial-gradient(circle var(--hole-r) at var(--circle-x, 50%) var(--circle-y, 50%),
            transparent 0,
            transparent calc(var(--hole-r) - 1px),
            #f5f6fa var(--hole-r),
            #f5f6fa 100%);
}

.camera-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 104px;
    height: 104px;
}

.help-link {
    color: #497579;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    transition: color 0.2s;
    text-align: start !important;
    align-self: start !important;
}

.help-link:hover {
    color: #1C5257;
}

/* Update existing button styles to match the new design */
.btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 24px;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
}

.btn-primary {
    background-color: #1C5257;
    color: white;
}

.btn-primary:hover {
    background-color: #164146;
}

.text-center {
    text-align: center;
}

.mb-8 {
    margin-bottom: 2rem;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

.border-primary {
    border-color: #058A82;
}

.border-t-transparent {
    border-top-color: transparent;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.gap-4 {
    gap: 1rem;
}

.w-full {
    width: 100%;
}

.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.opacity-50 {
    opacity: 0.5;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* Add styles for button container */
#initialButtons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* Loading Spinner */
.spinner {
    width: 65px;
    height: 65px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 6px solid #E4FFF0;
    position: absolute;
}

.spinner-line {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    position: absolute;
    border: 6px solid #35dc9443;
    border-top: 6px solid #35DC94;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Success Checkmark */
.status-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.success {
    background-color: #E4FFF0;
}

.checkmark {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error X */
.status-icon.error {
    background-color: #FFE5E5;
}

.error-x {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon {
    width: 74px;
    height: 74px;
    object-fit: contain;
}


.error-left {
    transform: rotate(45deg);
}

.error-right {
    transform: rotate(-45deg);
}

/* Input styles */
.input-field {
    @apply w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-teal-500;
}

.input-error {
    @apply border-red-500;
}

.error-message {
    @apply text-red-500 text-sm mt-1;
}

/* Input field container styles */
.input-container {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Input field styles */
.input-field {
    width: 100%;
    padding: 0.5rem;
    font-size: 16px;
    line-height: 1.5;
    color: #0c0c0c;
    background-color: #FFFFFF;
    border: 2px solid #E8F1F1;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    outline: none;

}

.input-field::placeholder {
    color: #1C5257;
}


.error-message {
    color: #EF4444;
    font-size: 14px;
    margin-top: 0.5rem;
    display: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

}

.error-message.visible {
    display: block;
}

/* Label styles */
.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #497579;
    margin-bottom: 0.5rem;
}

/* Mobile Navigation Styles */
.mobile-nav {
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0; */
    height: 10vh;
    background: #1C5257;
    box-shadow: 0 -1px 0 0 rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.nav-logo {
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Hide on desktop */
@media (min-width: 992px) {
    .content-side {
        width: 50%;
        height: 100vh !important;
        align-items: center;
    }

    .mobile-nav {
        display: none !important;
    }

    .page-wrapper {
        display: flex;
    }

    .banner-side {
        display: block;
        width: 50%;
    }

    .banner-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Add safe area inset padding for iOS devices */
.mobile-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Optional: Add smooth scrolling to the page */
html {
    scroll-behavior: smooth;
    height: 100vh;
}

#selectCamTxt {
    display: none;
}

#camera-buttons {
    display: none;
    width: 100%;
    gap: 5px;
}

#confirmCam {
    display: none;
    width: 100%;
}

.btn-inactive {
    background: #E8F1F1;
    color: #497579;
}

#cameraWrapper {
    max-width: 100% !important;
}

@media (max-width: 767px) {
    .camera-viewport {
        width: 200px;
        height: 200px;
    }
}
