@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}


:root {
    --blue: #287bff;
    --light-blue: #2196f3;
    --white: #fff;
    --grey: #f5f5f5;
    --black1: #222;
    --black2: #999;
    --black3: #333;
    --black4: #777;
    --light-black: #ccc;
    --light-red: #ff4685;
    --light-red2: #f0abc2;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============== login page ============== */
.login-body {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(45deg, var(--light-blue), var(--light-red));
}
.login-cm-success-err {
    position: relative;
    width: 32%;
    margin-left: -25px;
    margin-bottom: 70px;
    text-align: center;
}
.login-container {
    position: relative;
    padding: 50px;
    background: var(--white);
    box-shadow: -55px -55px 0 rgba(0, 0, 0, 0.05);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 100%;
    background: var(--light-black);
    transform: skewY(45deg);
    transform-origin: bottom right;
}

.login-container::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--light-black);
    transform: skewX(45deg);
    transform-origin: bottom right;
}

.login-container form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.login-container h3 {
    color: var(--black3);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
}

.login-container .inputBox {
    position: relative;
    width: 300px;
    margin-bottom: 40px;
}

.login-container .inputBox input {
    position: relative;
    width: 100%;
    padding: 8px 10px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-size: 1.1em;
    letter-spacing: 0.1em;
    z-index: 2;
}

.login-container .inputBox span {
    position: absolute;
    left: 0;
    padding: 10px 0;
    pointer-events: none;
    color: var(--black4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 1em;
    transition: 0.5s;
}

.login-container .inputBox input:valid~span,
.login-container .inputBox input:focus~span {
    color: var(--black3);
    font-size: 0.85em;
    transform: translateY(-32px);
}

.login-container .inputBox i {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, var(--light-blue), var(--light-red));
    transition: 0.5s;
    pointer-events: none;
    z-index: 1;
}

.login-container .inputBox input:valid~i,
.login-container .inputBox input:focus~i {
    height: 100%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.25);
}

.login-container .links {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 20px 0 10px;
}

.login-container .links a {
    text-decoration: none;
    color: var(--light-blue);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 0.75em;
}

.login-container .links a:nth-child(2) {
    color: var(--light-red);
}

.login-container .inputBox input[type="submit"] {
    background: var(--light-blue);
    cursor: pointer;
    font-weight: 600;
}

/* ============== End login page ============== */

.cm-container {
    position: relative;
    width: 100%;
}

/* =========== side navigation =========== */
.cm-navigation {
    position: fixed;
    width: 300px;
    height: 100%;
    background: var(--blue);
    border-left: 10px solid var(--blue);
    transition: 0.5s;
    overflow: hidden;
}

.cm-navigation.active {
    width: 100px;
}

.cm-navigation ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.cm-navigation ul li {
    position: relative;
    width: 100%;
    list-style: none;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.cm-navigation ul li:hover,
.cm-navigation ul li.hovered {
    background: var(--white);
}

.cm-navigation ul li:nth-child(1) {
    margin-top: 6px;
    margin-bottom: 50px;
    pointer-events: none;
}

.cm-navigation ul li a {
    position: relative;
    display: block;
    width: 100%;
    display: flex;
    text-decoration: none;
    color: var(--white);
}

.cm-navigation ul li:hover a,
.cm-navigation ul li.hovered a {
    color: var(--blue);
}

.cm-navigation ul li a .icon {
    position: relative;
    display: block;
    min-width: 60px;
    height: 60px;
    line-height: 75px;
    text-align: center;
}

.cm-navigation ul li a .icon img {
    width: 100%;
    padding: 8px;
    background: var(--white);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.cm-navigation ul li a .icon ion-icon {
    font-size: 1.75em;
}

.cm-navigation ul li a .title {
    position: relative;
    display: block;
    padding: 0 10px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    white-space: nowrap;
}

.cm-navigation ul li:hover a::before,
.cm-navigation ul li.hovered a::before {
    content: '';
    position: absolute;
    right: 0;
    top: -50px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 35px 35px 0 10px var(--white);
    pointer-events: none;
}

.cm-navigation ul li:hover a::after,
.cm-navigation ul li.hovered a::after {
    content: '';
    position: absolute;
    right: -1.2px;
    bottom: -50px;
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 35px -24px 0 10px var(--white);
    pointer-events: none;
}

/* =========== End side navigation =========== */

/* ============= main ==================== */
.cm-main {
    position: absolute;
    width: calc(100% - 300px);
    left: 300px;
    min-height: 100vh;
    background: var(--white);
    transition: 0.5s;
}

.cm-main.active {
    width: calc(100% - 100px);
    left: 100px;
}

/* ======= cm-topbar =========*/
.cm-topbar {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-black);
}

.cm-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    cursor: pointer;
}

.cm-search {
    position: relative;
    width: 400px;
    margin: 0 10px;
}

.cm-search label {
    position: relative;
    width: 100%;
}

.cm-search label input {
    width: 100%;
    height: 40px;
    border-radius: 40px;
    padding: 5px 20px;
    padding-left: 35px;
    font-size: 18px;
    outline: none;
    border: 1px solid var(--black2);
}

.cm-search label ion-icon {
    position: absolute;
    top: 0;
    left: 10px;
    padding: 10px 0;
    font-size: 1.2em;
}

.user {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}
.user a {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.user a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======= End cm-topbar =========*/

/* ========== cm-cardbox ==========*/
.cm-cardBox {
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 30px;
}

.cm-cardBox .cm-card {
    position: relative;
    background: linear-gradient(315deg, #444 40%, #ff4685 20%, #333 60%);
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.cm-cardBox .cm-card .cm-numbers {
    position: relative;
    font-weight: 500;
    font-size: 1.5em;
    color: var(--blue);
}

.cm-cardBox .cm-card .cm-cardName,
.cm-cardName ul li a {
    color: var(--black2);
    font-size: 1.1em;
    margin-top: 10px;
}

.cm-cardBox .cm-card .cm-cardName ul {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cm-cardName ul li {
    position: relative;
    list-style: none;
}

.cm-cardName ul li a {
    position: relative;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-decoration: none;
}

.cm-cardBox .cm-card .iconBx {
    font-size: 2em;
    color: var(--black2);
}

.cm-cardBox .cm-card:hover {
    background: var(--blue);
}

.cm-cardBox .cm-card:hover .cm-numbers,
.cm-cardBox .cm-card:hover .cm-cardName,
.cm-cardBox .cm-card:hover .cm-cardName ul li a,
.cm-cardBox .cm-card:hover .iconBx {
    color: var(--white);
}

/* ========== End cm-cardbox ==========*/
/* =============== Recent Scans List Details container =========*/
.recentScannedDetails {
    position: relative;
    width: 100%;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
}

.recentScannedDetails .recentScanns {
    position: relative;
    display: grid;
    min-height: 500px;
    padding: 20px 100px;
    background: var(--white);
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
    border-radius: 20px;

}

.cardHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.cardHeader h2 {
    font-weight: 600;
    color: var(--blue);
}

.recentScannedDetails table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.recentScannedDetails table thead td {
    font-weight: 600;
}

.recentScannedDetails .recentScanns table tr {
    color: var(--black1);
}

.recentScannedDetails .recentScanns table tr:last-child {
    border-bottom: none;
}

.recentScannedDetails .recentScanns table tbody tr:hover {
    background: var(--blue);
    color: var(--white);
}

.recentScannedDetails .recentScanns table tr td {
    padding: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.recentScannedDetails .recentScanns table tr td:last-child {
    text-align: end;
}

.recentScannedDetails .recentScanns table tr td:nth-child(1) {
    text-align: center;
}

.recentScannedDetails .recentScanns table tr td:nth-child(2) {
    text-align: end;
}

.recentScannedDetails .recentScanns table tr td:nth-child(3) {
    text-align: center;
}

/* ========== End Recent Scans List Details container ========= */

/* ============== generateQRForm page =========== */

.generatForm {
    position: relative;
    width: 100%;
    margin-top: 50px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.generatForm .newExtraQR {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 230px;
}
.generatFormInner {
    position: relative;
    margin-top: 10px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    display: flex;
    justify-content: center;
}

.generatFormInner fieldset {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.13);
}

.generatFormInner fieldset legend {
    position: absolute;
    width: 275px;
    top: calc(100% - 405px);
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--white);
    z-index: 1002;
}

.generatFormInner form {
    margin-top: 50px;
}

.generatFormInner .giftNumber input,
.giftNameClr .giftName input {
    padding: 8px;
    background: rgba(0, 0, 0, 0.1);
    border: 0;
    outline: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.generatFormInner .giftNameClr {
    position: relative;
    width: 100%;
    height: 65px;
    display: flex;
    margin-top: 30px;
}

.generatFormInner .giftNameClr .giftName {
    position: relative;
    flex-basis: 20%;
}

.generatFormInner .giftNameClr .giftClr {
    position: relative;
    flex-basis: 80%;
}

.giftClr label {
    display: block;
}

.giftClr .giftClr-innerDiv {
    position: relative;
    margin-left: 10px;
    width: 100%;
    height: 40px;
    display: flex;
}

.giftClr-innerDiv input {
    border: 0;
    outline: 0;
    background: rgba(0, 0, 0, 0.1);
}

.giftClr-innerDiv input:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.giftClr-innerDiv .giftClr-input {
    width: 40%;
    height: 100%;
}

.generatFormInner .giftSerial {
    position: relative;
    width: 50%;
    margin: 35px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.giftSerial #gift2 {
    margin-left: 25px;
}
.generatFormInner form button {
    margin: 35px auto;
    display: block;
    padding: 3px 25px;
    color: var(--white);
    background: var(--light-blue);
    border-radius: 15px;
    cursor: pointer;
    transition: 0.5s;
}

.generatFormInner form button:hover {
    background: var(--blue);
}
/* ============== End generateQRForm page =========== */

/* ================= QR code generat page ============ */
.print-container {
    position: relative;
    width: 100%;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}
h2::after {
    content: '';
    position: absolute;
    display: flex;
    flex-direction: column-reverse;
    width: 225px;
    height: 4px;
    background: var(--light-red);
    border-radius: 5px;
    border-left: 15px solid var(--blue);
    border-right: 15px solid var(--blue);
    opacity: 0;
    animation: h2after 5s linear infinite;
    transition: 5s;
}
@keyframes h2after {
    0% {
        width: 0;
    }
    50% {
        opacity: 1;
    }
    90% {
        width: 220px;
        opacity: 0.5;
    }
    100% {
        width: 225px;
        opacity: 0;
    }
}
.qrimg-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.print-container .qrimg-box .qr-img {
    position: relative;
    width: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.print-container .qrimg-box .qr-img img {
    width: 100%;
    border-radius: 10px;
}

.print-container .qrimg-box .qr-img .qr-img-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--light-red);
    border-radius: 20px;
    overflow: hidden;
}

.print-container .qrimg-box .qr-img .qr-img-title a {
    position: relative;
    padding: 10px 30px;
    display: inline-block;
    color: var(--white);
    font-size: 0.9em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.5s;
}

.print-container .qrimg-box .qr-img .qr-img-title a:hover {
    background: var(--light-red2);
}

/* ================= End QR code generat page ============ */
/* ================== Role User ============ */
.roleUserTble {
    margin-top: 50px;
}
.roleUserTble .recentScanns {
    min-height: 0;
}
.roleUserTble .recentScanns{
    padding-bottom: 100px;
}
.roleUserTble .cardHeader {
    padding-bottom: 60px;
}
.roleUserTble table tbody td:last-child {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.roleUserTble table tbody td:last-child a {
    font-size: 1.3em;
}
/* ================== End Role User ============ */
/* ============= End main ==================== */

/* ========= responsive design ================= */

@media(max-width: 991px) {
    .cm-navigation {
        left: -300px;
    }

    .cm-navigation.active {
        width: 300px;
        left: 0;
    }

    .cm-main {
        width: 100%;
        left: 0;
    }

    .cm-main.active {
        left: 300px;
    }

    .cm-cardBox {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .recentScannedDetails {
        grid-template-columns: repeat(1, 1fr);
    }

    .recentScanns {
        overflow-x: auto;
    }

    .status.inprogress {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .cm-navigation {
        width: 100%;
        left: -100%;
        z-index: 1000;
    }

    .cm-navigation.active {
        width: 100%;
        left: 0;
    }

    .cm-main {
        width: 100%;
        left: 0;
    }

    .cm-main.active {
        left: 0;
    }

    .cm-main.active .cm-toggle {
        position: absolute;
        left: initial;
        right: -50px;
        color: var(--white);
        z-index: 1001;
    }

    .cm-cardBox {
        grid-template-columns: repeat(1, 1fr);
    }

    .cardHeader h2 {
        font-size: 20px;
    }

    .user {
        min-width: 40px;
    }
}