﻿body {
    background-color: #f8f9fa;
    color: #333;
}
h1{
    font-size:2em;
}
h2 {
    font-size: 1.5em;
}
h3{
    font-size: 1.2em;
}
h4 {
    font-size: 1.1em;
}
.navbar {
    background-color: #6861ce;
}

.navbar-brand, .nav-link {
    color: #fff !important;
}

    .navbar-brand:focus, .navbar-brand:active {
        border: none;
        outline: none;
    }

.logo-small {
    height: 50px;
}

.section-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

    .section-title a {
        color: #6861ce;
        text-decoration: none;
    }
.discount-badge {
    position: absolute;
    top: 0px;
    right: -20px;
    background: url('/images/discount-badge.png');
    background-size: contain;
    background-repeat: no-repeat;
    color: white;
    width: 50px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50%;
    z-index: 10;
}

.product-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .product-card del {
        font-size: 0.9em;
    }

    .product-card .card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .product-card .card-body {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

        .product-card .card-body .btn {
            margin-top: auto;
        }

.footer {
    background-color: #6861ce;
    color: #fff;
    padding: 2rem 0;
}

    .footer a {
        color: #fff;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
    float: left;
    margin: 20px;
}

.splash-image {
    background: url('/images/classqr-bg.jpg') no-repeat center right;
    background-size: cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.splash-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 10px;
}

    .splash-content a.btn {
        min-width: 130px;
    }

.action-buttons {
    margin-top: 1rem;
}

    .action-buttons .btn {
        margin: 0.5rem;
        height:48px;
        font-size:1.1em;
        padding-top:10px;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon input {
        width: calc(100% - 50px);
        border: none;
    }

        .input-with-icon input:focus, .input-with-icon input:active {
            border: none;
            outline: none;
        }

    .input-with-icon button {
        position: absolute;
        border: none;
        right: 5px;
        top: 0px;
        bottom: 0px;
        width: 50px;
        background-color: #00000000;
        vertical-align: middle;
    }

        .input-with-icon button i {
        }

.btn-outline-primary {
    border-color: #80808022;
    color: #000000;
}

.is-loading:after, .loader {
    display: block;
    width: 2rem;
    height: 2rem;
    background: 0 0;
    border: 3px solid #6861ce;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: 1s spin linear infinite;
    margin: auto;
}

.is-loading-lg:after, .loader-lg {
    width: 2rem;
    height: 2rem;
    border-width: 5px;
}

.is-loading-sm:after, .loader-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.is-loading {
    position: relative;
    color: transparent !important;
}

    .is-loading > * {
        opacity: 0.2 !important;
    }

    .is-loading:after {
        position: absolute;
        top: calc(50% - 1.5rem / 2);
        left: calc(50% - 1.5rem / 2);
        content: '';
    }

.is-loading-lg:after {
    top: calc(50% - 2rem / 2);
    left: calc(50% - 2rem / 2);
}

.is-loading-sm:after {
    top: calc(50% - 1rem / 2);
    left: calc(50% - 1rem / 2);
}

.sidebar {
    display: none;
}

    .sidebar.active {
        display: block;
    }

@media (min-width: 768px) {
    .sidebar {
        display: block;
    }
}

.sidebar h4 {
    margin-bottom: 20px;
}

.filter-section {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    .filter-section h5 {
        margin-bottom: 10px;
    }

.form-check {
    margin-bottom: 10px;
}

.product-detail {
    margin-top: 2rem;
}

.product-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    color: #ff4444;
    margin-bottom: 1rem;
}

.product-duration {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-rating {
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.product-description {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-reviews {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

    .review:last-child {
        border-bottom: none;
    }

.related-products {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom:20px;
}

    .related-products h2 {
        margin-bottom: 1.5rem;
    }

#loading {
    margin-top: 2rem;
}

@media (max-width: 767px) {
    .product-actions {
        flex-direction: column;
    }
}

.product-actions form {
    flex: 1;
    max-width: 50%;
}

.product-actions button {
    min-width: 200px;
    width: 100%;
    max-width: 40%;
}


.rate-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    position: relative;
    white-space: nowrap;
}

    .stars svg {
        width: 16px;
    }

.overlay {
    background: #fff;
    height: 100%;
    overflow: hidden;
    mix-blend-mode: color;
    position: absolute;
    top: 0;
    right: 0;
}

svg {
    fill: gold;
}

.rate-count {
    color: #666;
    font-size: 0.9rem;
}

.cart-link {
    position: relative;
    display: inline-block;
    padding: 15px 30px 10px 10px !important;
}
a.btn-link {
    text-decoration: none !important;
}
.cart-badge {
    position: absolute;
    display: block;
    top: 5px;
    right: 10px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    min-width: 18px;
    aspect-ratio: 1 / 1;
    line-height: 1;
    text-align: center;
    font-weight: bold;
    border: 2px solid #fff;
}

#cart-count::before,
#cart-count::after {
    content: none;
}

.cart-title {
    margin: 2rem 0;
    text-align: center;
}

.empty-cart {
    text-align: center;
    padding: 3rem 0;
    min-height:60vh;
}

    .empty-cart i {
        font-size: 4rem;
        color: #ccc;
        margin-bottom: 1rem;
    }

.cart-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.cart-items {
    flex: 1;
}

.cart-item {
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #fff;
}
.cart-item-content {
    display: flex;
}
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    padding: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-remove:hover {
        color: #c82333;
        transform: scale(1.1);
    }

.cart-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

.item-image {
    width: 120px;
    min-width: 120px;
}

    .item-image img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }

.item-details {
    flex: 1;
    padding-left:10px;
}

.item-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.quantity-input {
    width: 80px;
}

.cart-summary {
    width: 300px;
    min-width: 300px;
}

.summary-content {
    position: sticky;
    top: 20px;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.summary-row {
    display: flex;
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
}
    .summary-row:first-child {
        border-top: 0px;
        padding-top: 0;
    }

    .summary-row > span:first-child {
        flex-grow: 1;
    }

    .summary-row.total > span {
        font-weight: bold;
    }
    .summary-row.paid > span {
        font-weight: bold;
        color:#00aa1c;
    }
.btn-checkout {
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-continue {
    width: 100%;
}

.label {
    color: #666;
    min-width: 80px;
    display: inline-block;
}

@media (max-width: 991px) {
    .cart-container {
        flex-direction: column;
    }

    .cart-summary {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .cart-item-content {
        flex-direction: column;
    }

    .item-image {
        width: 100%;
        text-align: center;
    }

        .item-image img {
            max-width: 200px;
        }

    .item-details {
        width: 100%;
    }

    .item-quantity {
        justify-content: space-between;
    }

    .quantity-input {
        width: 100px;
    }
}

.checkout-container {
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.checkout-title {
    text-align: center;
    margin-bottom: 2rem;
}

.checkout-content {
    display: flex;
    gap: 2rem;
}

.checkout-details {
    flex: 1;
    min-width: 0;
}

.checkout-summary {
    width: 400px;
    min-width: 400px;
}

.summary-section {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shipping-info {
    top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

    .cart-items::-webkit-scrollbar {
        width: 6px;
    }

    .cart-items::-webkit-scrollbar-thumb {
        background-color: #6861ce;
        border-radius: 3px;
    }

    .cart-items::-webkit-scrollbar-track {
        background-color: #f1f1f1;
    }

@media (max-width: 1200px) {
    .checkout-container {
        padding: 1rem;
    }

    .checkout-content {
        gap: 1.5rem;
    }

    .checkout-summary {
        width: 350px;
        min-width: 350px;
    }
}

@media (max-width: 991px) {
    .checkout-content {
        flex-direction: column;
    }

    .checkout-summary {
        width: 100%;
        min-width: 100%;
    }

    .summary-section {
        position: relative;
        top: 0;
    }

    .cart-items {
        max-height: none;
    }
}

@media (max-width: 767px) {
    .checkout-container {
        padding: 0.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group.col-md-6 {
        width: 100%;
    }

    .cart-item {
        flex-direction: column;
    }

    .item-image {
        width: 100%;
        text-align: center;
    }

        .item-image img {
            max-width: 200px;
        }
}

.payment-methods {
    display: block;
}

.payment-method {
    position: relative;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .payment-method input[type="radio"] {
        display: none;
    }

    .payment-method label {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin: 0;
        cursor: pointer;
        width: 100%;
    }

.payment-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

    .payment-icon .fa-university {
        color: #2d4b94;
    }

.momo-icon {
    background-color: #ae2070;
    color: white;
}

.vnpay-icon {
    background-color: #004a9c;
    color: white;
}

.cod-icon {
    background-color: #28a745;
    color: white;
}

.payment-method:has(input[type="radio"]:checked) {
    background-color: #f8f4ff;
    border-color: #6861ce;
}

.payment-method input[type="radio"]:checked ~ label {
    color: #6861ce;
    font-weight: 500;
}

    .payment-method input[type="radio"]:checked ~ label .payment-icon {
        transform: scale(1.1);
    }

.payment-method:hover:not(:has(input[type="radio"]:checked)) {
    border-color: #6861ce;
}

.btn-place-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.order-amount {
    font-weight: bold;
}

.btn-place-order.is-loading {
    position: relative;
    color: transparent !important;
}

    .btn-place-order.is-loading:after {
        content: '';
        position: absolute;
        width: 1.2rem;
        height: 1.2rem;
        top: 50%;
        left: 50%;
        margin-left: -0.6rem;
        margin-top: -0.6rem;
        border: 2px solid #fff;
        border-top-color: transparent;
        border-radius: 50%;
        animation: button-loading-spinner 1s linear infinite;
    }

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.footer {
    background-color: #6861ce;
    color: #fff;
    padding: 2rem 0;
}

    .footer a {
        color: #fff;
        text-decoration: none;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.btn.btn-primary {
    background-color: #6861ce;
    border-color: #6861ce;
}

    .btn.btn-primary:hover, .btn.btn-primary:focus, .btn.btn-primary:active, .btn.btn-primary.active, .open > .dropdown-toggle.btn.btn-primary {
        background-color: #5a51b2 !important;
        border-color: #5a51b2 !important;
    }

.btn-outline-primary {
    color: #6861ce;
    border-color: #6861ce;
}

    .btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .open > .dropdown-toggle.btn-outline-primary {
        color: #fff;
        background-color: #6861ce;
        border-color: #6861ce;
    }

.btn.btn-highlight {
    background-color: #cd6900;
    border-color: #9f5200;
    color:#fff;
}

    .btn.btn-highlight:hover, .btn.btn-highlight:focus, .btn.btn-highlight:active, .btn.btn-highlight.active, .open > .dropdown-toggle.btn.btn-highlight {
        background-color: #af5a00 !important;
        border-color: #7e4100 !important;
    }

.navbar {
    background-color: #6861ce;
}

.navbar-brand, .nav-link {
    color: #fff !important;
}

    .navbar-brand:hover, .nav-link:hover {
        color: #ddd !important;
    }

.card {
    border-color: #6861ce;
}

.card-header {
    background-color: #6861ce;
    color: #fff;
}

.pagination .page-link {
    color: #6861ce;
}

    .pagination .page-link:hover {
        color: #fff;
        background-color: #6861ce;
        border-color: #6861ce;
    }

.badge-primary {
    background-color: #6861ce;
}

.alert-primary {
    background-color: #6861ce;
    border-color: #6861ce;
    color: #fff;
}

.progress-bar {
    background-color: #6861ce;
}

.text-primary {
    color: #6861ce !important;
}

.border-primary {
    border-color: #6861ce !important;
}

.bg-primary {
    background-color: #6861ce !important;
}

.section-title a {
    color: #6861ce;
}

/*************LOGIN******************/

.login-container {
    width: 96% !important;
    padding: 0px !important;
}

.login-container {
    margin-top: 1%;
    margin-bottom: 5%;
    margin-left: auto;
    margin-right: auto;
}

.login-form {
    padding: 20px;
    background: #fff;
    border:solid 1px #eee;
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 9px 26px 0 rgba(0, 0, 0, 0.19);
    margin: auto;
    max-width: 400px;
    width: 100%;
}

    .login-form h3, .login-form h1, .login-form h2 {
        text-align: center !important;
        color: #6861ce !important;
    }

.login-container form {
    padding: 2%;
}

.btnSubmit {
    width: 50%;
    border-radius: 1.5rem;
    padding: 1.5%;
    border: none;
    cursor: pointer;
    text-decoration:none;
}

.login-form .btnSubmit {
    font-weight: 600;
    height:46px;
    color: #fff;
    background-color: #6861ce;
}

.login-form .ForgetPwd {
    color: #6861ce;
    font-weight: 600;
    text-decoration: none;
}

.login-title {
    font-size: 24pt;
    color: #03a9f3;
    text-align: center;
    font-weight: bold;
}

.bg-secondary-gradient {
    background: #6861ce !important;
    background: -webkit-linear-gradient(legacy-direction(-45deg), #2a20ac, #6861ce) !important;
    background: linear-gradient(-45deg, #2a20ac, #6861ce) !important;
}

.mt--5 {
    margin-top: -40px;
}

.card.full-height {
    height: calc(100% - 30px);
}


.select2 {
    flex-grow: 1;
    font-size: 1rem !important;
}
    .select2 .select2-selection--single {
        height: 36px !important;
    }
     .select2-search__field:active,  .select2-search__field:focus {
        outline: none;
        border:none;
    }
.select2-search__field {
    outline: none;
    border: none;
}


.select2-input {
    position: relative
}

    .select2-input label.error, .select2-input label.success {
        position: absolute;
        bottom: -30px
    }

    .select2-input .select2 {
        margin-bottom: 15px
    }
.new-orders{
    padding:20px;
}
.new-orders h1 {
    text-align: center;
    padding:20px;
}
.timeline {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
}

    .timeline-step::before {
        content: '';
        width: 100%;
        height: 4px;
        background: #ddd;
        position: absolute;
        top: 50%;
        left: 0;
        z-index: 1;
    }

    .timeline-step.completed::before {
        background: #4caf50;
    }

    .timeline-step:not(:last-child)::after {
        content: '';
        width: 100%;
        height: 4px;
        background: #ddd;
        position: absolute;
        top: 50%;
        right: -50%;
        z-index: -1;
    }

    .timeline-step.completed:not(:last-child)::after {
        background: #4caf50;
    }

    .timeline-step .timeline-content {
        display: inline-block;
        width: 40px; /* Set width to ensure circular shape */
        height: 40px; /* Set height to ensure circular shape */
        line-height: 36px; /* Center icon vertically */
        background: #fff;
        border: 2px solid #ddd;
        border-radius: 50%; /* Make it round */
        position: relative;
        z-index: 1;
    }

    .timeline-step.completed .timeline-content {
        border-color: #4caf50;
        background: #4caf50;
        color: #fff;
    }

    .timeline-step .timeline-content i {
        font-size: 24px;
        line-height: 36px; /* Center icon vertically */
    }

.seller-info {
    font-size:1.1em;
    font-style:italic;
    display:flex;
}
    .seller-info h2 {
        font-size: 1.1em;
        font-style: italic;
    }