﻿body {
    padding-top: 10px;
    padding-bottom: 20px;
    font-family: Arial, PMingLiU, generic-family;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 10px;
    padding-right: 10px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}


.hero-banner {
    width: 100%;
    height: 20vh; /* full viewport height */
    background: linear-gradient(to bottom, #FFEEEE, #FFF4F4, #FFFDFD); /* gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #CC5D00;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.hero-logo {
    width: 100px;
    height: auto;
    animation: pulse 2s ease-in-out infinite alternate;
}

.nav-logo {
    width: 100px;
    height: 100px;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

#sidebar {
    position: fixed;
    left: -250px;
    width: 250px;
    background-color: #343a40;
    z-index: 1100;
    overflow-y: auto;
    transition: left 0.3s ease;
}

    #sidebar.active {
        left: 0;
    }

    #sidebar a {
        color: white;
        text-decoration: none;
        padding: 10px 20px;
        display: block;
    }

        #sidebar a:hover {
            background-color: #495057;
        }

#bodyContent {
    transition: margin-left 0.3s ease;
    width: 100%;
    margin: 0 auto;
}

    #bodyContent.shifted {
        margin-left: 250px;
    }

/*@media (max-width: 992px) {
    #bodyContent.shifted {
        margin-left: 250px;
    }
}*/

.company-name {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
}

@media (max-width: 600px) {

    .company-name {
        font-size: 2rem;
    }

    .hero-logo {
        width: 100px;
    }
}

.pagination-container {
    margin-top: 10px;
}

.pagination li {
    display: inline-block;
    margin: 0 2px;
}

.imgBox {
    display: inline;
}

.img-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin: 5px;
    border-radius: 6px;
    cursor: pointer;
}
/*verify-btn*/
.verify-btn {
    background: linear-gradient(45deg, #CC5D00, #ff7a00);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(204,93, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .verify-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .verify-btn:hover::before {
        left: 100%;
    }

    .verify-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(204, 93, 0, 0.4);
        background: linear-gradient(45deg, #ff7a00, #CC5D00);
    }

    .verify-btn:active {
        transform: translateY(0);
    }

    span.loading {
        pointer-events: none;
        opacity: 0.8;
    }

        span.loading::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            border: 2px solid transparent;
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
        }

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}
/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-waiting {
    background: #ffc107;
}

.status-success {
    background: #28a745;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}
/* Success animation */
.success-checkmark {
    display: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    position: relative;
    margin: 20px auto;
}

    .success-checkmark::after {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 20px;
        height: 35px;
        border: solid white;
        border-width: 0 4px 4px 0;
        transform: translate(-50%, -60%) rotate(45deg);
    }

.success-animation {
    animation: successBounce 0.6s ease-in-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/*QR code*/
.qr-container {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

    .qr-container img {
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        animation: qrPulse 3s ease-in-out infinite;
    }

@keyframes qrPulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    }
}

.qr-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.qr-scanning {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #CC5D00, transparent);
    animation: scan 2s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(200px);
    }
}

/* Responsive design */
@media (max-width: 768px) {

    .hero-banner {
        margin: 20px 10px;
    }

    .company-name {
        font-size: 2rem;
    }

    .verify-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110px;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgb(250, 190, 180);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}