@font-face {
    font-family: Nautica;
    src: url('../font/NAUTICA\ MEDIUM.TTF');
    font-weight: bold;
}

@font-face {
    font-family: Poppins;
    src: url('../font/POPPINS-REGULAR.TTF');
}

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


body {
    font-family: 'Poppins', sans-serif;
    margin: auto;
    max-width: 600px;
    background-color: #111;
}

.common-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 30px;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.common-btn:hover {
    background: #000;
    border: 1px solid #fff;
    color: #fff;
}

h3.title {
    color: #fff;
    font-size: 20px;
    text-transform: capitalize;
    font-weight: 600;
    text-align: center;
    margin-block: 20px 40px;
}

input::placeholder {
    color: #cec8c8 !important;
}

/* =============== Start  Header page ================ */
.header-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.header-logos .eamami {
    width: 60px;
}

.header-logos .fair-and-handsome {
    width: 80px;
}

/* =============== End  Header page ================ */
/* =============== Start  Footer page ================ */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.footer .cbc-logo {
    width: 200px;
}

.footer .powered-by-text {
    font-size: 14px;
    color: #fff;
    margin: 0 0 0 15px;
}

/* =============== End  Footer page ================ */

/* =============== Start Form page ================ */
.form-sec {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    /* height: 100vh; */
    margin-top: 30px;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 16px;
}

.form {
    width: 100%;
}

.form input {
    background: #111111 !important;
    border: 1px solid #fff !important;
    border-radius: 14px !important;
    color: #fff !important;
    padding: 12px;
}

.form label {
    color: #fff;
}

.form input,
.form input:focus {
    box-shadow: none;
    border: none;
    outline: none;
}

.form .common-btn {
    font-weight: 600;
    font-size: 18px;
    margin-block: 20px;
    border-radius: 14px;
}

/* =============== End Form page ================ */

/* =============== Start Scanning Completed page ================ */
.scan-complete {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 30px;
    margin-top: 80px;
}

.scan-complete .scan-complete-txt {
    color: #ddcb00;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.scan-complete .big-para {
    font-size: 22px;
    color: #fff;
    text-align: center;
    margin-top: 10px;
}

.scan-complete .common-btn {
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    margin-top: 20px;
}

/* =============== End Scanning Completed page ================ */

/* =============== Start User List page ================ */
.logout-btn {
    padding: 5px 10px 5px 10px;
    border-radius: 50%;
}
.user-list-btn {
    padding: 5px 10px 5px 10px;
    border-radius: 50%;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-block: 30px;
}

.user-list .user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-list h5.user-name {
    color: #fff;
    font-size: 20px;
}

.user-list .user-email {
    display: block;
    color: #fff;
    font-size: 16px;
}

.user-list .user {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    border: 1px solid #fff;
    border-radius: 14px;
    padding: 10px 20px;
    text-decoration: none;
    cursor: pointer;
}

.user-list .users {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.user-list h3.title{
    margin: 0;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: space-around;
    margin-bottom: 25px;
}

.search-form .search-btn {
    padding: 6px 19px;
}


.search-input {
    background: #111111 !important;
    border: 1px solid #fff !important;
    border-radius: 6px !important;
    color: #fff !important;
    padding: 6px 14px;
}

.search-input,
.search-input:focus {
    box-shadow: none;
    border: none;
    outline: none;
}


.no-data-message {
    color: #fff;
    text-align: center;
}

.pagination {
    gap: 6px;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.pagination li a {
    color: #000000;
    text-decoration: none;
    background: #fff;
    padding: 1px 8px;
    border-radius: 4px;
}

/* =============== End User List page ================ */

/* =============== Start User Detail page ================ */
.user-detail .product-img {
    width: 90px;
}

.user-detail h3.title {
    margin-bottom: 30px;
}

.user-detail .product {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 10px 20px;
}

.user-detail .products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-detail .product-cotent .product-name {
    color: #fff;
    font-size: 18px;
}

.user-detail .product-cotent .desc {
    color: #fff;
    font-size: 14px;
}



.user-detail .progress-card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

.user-detail .progress-container {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
    margin-bottom: 40px;
}

.user-detail .progress-card .percent {
    position: relative;
}

.user-detail .progress-card svg {
    position: relative;
    width: 70px;
    height: 70px;
}

.user-detail .progress-card svg circle {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 7;
    stroke-linecap: round;
}

.user-detail .progress-card svg circle:last-of-type {
    stroke-dasharray: 180px;
    stroke-dashoffset: calc(180px - (180px * var(--percent)) / 100);
    stroke: #3498db;
}

.user-detail .progress-card .number {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.user-detail .progress-card .number p {
    font-weight: 200;
    font-size: 16px;
    color: #fff;
}

.user-detail .progress-card .title h2 {
    margin: 10px 0 0 !important;
    font-size: 16px;
    text-align: center;
    color: #fff;
}

.user-detail .progress-card .title h2 {
    margin: 25px 0 0;
}

@media only screen and (min-width:600px) and (max-width:992px) {
    h3.title {
    font-size: 24px;
    }
    .user-detail .product-img {
        width: 140px;
    }
    h3.title.mt-5.recommendation-title {
        margin-top: 80px !important;
    }
    .user-detail .product-cotent .product-name {
        font-size: 24px;
    }
    .user-detail .product-cotent .desc {
        font-size: 16px;
    }
}
/* =============== End User Detail page ================ */

.scanner-container {
    display: none;
    position: relative;
    width: 102%;
    top: 40px;
    max-width: 510px;
    left: 20px;
    height: 410px;
    background-color: transparent;
    /* border-radius: 20px; */
    overflow: hidden;
    z-index: 999;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

#camcam i {
    margin-right: 10px;
}

#camcam .capture-img-btn svg path {
    transition: all 0.5s ease;
}

#camcam .capture-img-btn:hover svg path {
    fill: #fff !important;
}

#camcam .capture-img-btn {
    margin-top: 25px;
}

.btn-grp {
    transition: all 0.5s ease;
}

#retake {
    display: none;
    width: fit-content;
    margin-inline: auto;
}

div#cont {
    height: 450px !important;
    position: relative;
    max-width: 550px;
    width: 100% !important;
}

#camcam video {
    position: absolute;
    /* top: 0; */
    left: 0;
    width: 100%;
    max-width: 612px;
    object-fit: cover;
    height: 450px;
    margin-block: 20px;
    padding: 20px;
}

#camcam #capture {
    position: absolute;
    /* top: 0; */
    left: 0;
    width: 100%;
    object-fit: cover;
    height: 450px;
    margin-block: 20px;
    padding: 20px;
}

#camcam canvas#canvas {
    width: 100%;
    max-width: 572px;
    height: 100%;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 10px solid rgba(255, 255, 255, 0.1);
}

.progress-circle .inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.scan-status {
    margin-top: 20px;
    color: #fff;
    font-size: 1.2rem;
}

#progress-circle:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: #00ff00;
    animation: progressAnimation 3s linear infinite;
}

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

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



.scanner-container img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Dim overlay for scanning effect */
    z-index: 1;
}

.scanner-overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: rgba(0, 255, 255, 0.5);
    /* Start color of the scanning line */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7), 0 0 30px rgba(0, 255, 255, 1);
    /* Glowing effect */
    animation: scan 4s infinite ease-in-out;
    z-index: 2;
}

@keyframes scan {
    0% {
        top: 0;
        background-color: rgba(0, 255, 255, 0.5);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 30px rgba(0, 255, 255, 1);
        height: 2px;
    }

    50% {
        top: 100%;
        background-color: rgba(0, 255, 255, 1);
        box-shadow: 0 0 20px rgba(0, 255, 255, 1), 0 0 40px rgba(0, 255, 255, 1);
        height: 4px;
    }

    100% {
        top: 0;
        background-color: rgba(0, 255, 255, 0.5);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.7), 0 0 30px rgba(0, 255, 255, 1);
        height: 2px;
    }
}

/* Dot overlay for the face recognition effect */
.dot-overlay {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 2;
    /* Behind corner borders but above the image */
}

/* Creating the dots with glow effect */
.dot-overlay::before {
    content: '';
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0, 255, 255, 1) 1px, transparent 1px);
    background-size: 25px 25px;
    /* Adjust grid spacing of the dots */
    animation: glow-dots 2s infinite cubic-bezier(0.42, 0, 0.58, 1);
    /* Smooth easing curve */
    /* opacity: 0.8; */
    opacity: 0;
}

/* Smoother glowing effect for dots */
@keyframes glow-dots {
    0% {
        background-image: radial-gradient(circle, rgba(0, 255, 255, 0.3) 1px, transparent 1px);
        opacity: 0.5;
    }

    25% {
        background-image: radial-gradient(circle, rgba(0, 255, 255, 0.6) 2px, transparent 1px);
    }

    50% {
        background-image: radial-gradient(circle, rgba(0, 255, 255, 1) 3px, transparent 1px);
        box-shadow: 0 0 15px rgba(0, 255, 255, 1), 0 0 30px rgba(0, 255, 255, 1);
        opacity: 1;
    }

    75% {
        background-image: radial-gradient(circle, rgba(0, 255, 255, 0.6) 2px, transparent 1px);
    }

    100% {
        background-image: radial-gradient(circle, rgba(0, 255, 255, 0.3) 1px, transparent 1px);
        opacity: 0;
    }
}

/* Corner borders */
.corner-border {
    position: absolute;
    width: 60px;
    /* Length of the corner */
    height: 60px;
    border: 8px solid rgba(0, 255, 255, 0.8);
    /* Light cyan color for corners */
    /* box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);  */
}

.corner-top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}


#progress-circle:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: #00ff00;
    animation: progressAnimation 3s linear infinite;
}

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

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

#analyzing-text {
    display: none;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-block: 20px 0px;
    letter-spacing: 3px;
}



/* Error Message */
div#form-error-message-div {
    width: 100%;
}

div#form-error-message-div p {
    margin: 0;
    color: #9f0000;
}

.form-error {
    color: #e90000;
    margin: 6px 0 0 6px;
}

@media only screen and (max-width:769px) {
    .scanner-container {
        width: 92%;
    }
}

@media only screen and (max-width:468px) {
    .scanner-container {
        width: 90%;
    }
}

@media only screen and (max-width:360px) {
    .scanner-container {
        width: 88%;
    }
}

input.email-disabled{
    background-color: #383838 !important;
}