/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
    height: 64px;
}

.app-brand-logo.demo svg {
    width: 30px;
    height: 24px;
}

.app-brand-text.demo {
    font-size: 1.25rem;
}

.authentication-wrapper .app-brand-text.demo {
    font-size: 1.5rem;
    text-transform: capitalize;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
    padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
    z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
    display: block !important;
}

.demo-inline-spacing > * {
    margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
    margin-top: 1.25rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
    margin-top: 1.875rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
    margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
    margin-top: 0 !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 1.25rem;
}
.layout-demo-placeholder img {
    width: 900px;
}
.layout-demo-info {
    text-align: center;
    margin-top: 1.25rem;
}

/* Optional Custom Styles */
.swiper-container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    /* Change navigation button color */
}

.text-stroke {
    position: relative;
    color: white;
    /* Main text color */
    text-shadow: 2px 2px 0px white, /* Top-left */ -2px -2px 0px white,
        /* Bottom-right */ 2px -2px 0px white,
        /* Top-right */ -2px 2px 0px white;
    /* Bottom-left */
}

.ts2 {
    font-size: 24px;
    font-weight: bold;
    color: #f10808 !important;
    /* Text color */
    text-shadow: -1px -1px 0 #fdfdfd, 1px -1px 7px #ffffff, -1px 1px 0 #000,
        1px 1px 0 #000;
    /* Creates the stroke effect */
}
.cart-badge {
    position: absolute;
    height: 1.4rem;
    width: 1.4rem;
    top: -0.9rem;
    right: -0.7rem;
    font-size: 0.7rem;
    padding: 0.3em 0.45em;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

#scrollToTopBtn {
    font-size: 24px;
    background-color: #007bff;
    /* Blue background */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.5);
    /* Initial glow effect */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition */
    display: none;
    position: fixed;
    bottom: 20px;
    width: 48px;
    height: 48px;
    right: 20px;
    z-index: 999;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
    /* Darker blue for hover */
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 123, 255, 0.8),
        0 0 30px rgba(0, 123, 255, 0.6);
    /* Glowing effect on hover */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    /* Adding text glow on hover */
}

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    background: linear-gradient(45deg, #6c5ce7, #a363d9);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    z-index: 1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    background: linear-gradient(45deg, #a363d9, #6c5ce7);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, #2d3436 0%, #6c5ce7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #6c5ce7, #a363d9);
    border: none;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.btn-outline {
    border: 2px solid #6c5ce7;
    color: #6c5ce7;
    background: transparent;
}

.btn-outline:hover {
    background: linear-gradient(45deg, #6c5ce7, #a363d9);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.hero-stats {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image-main {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.hero-image-main:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    right: -10%;
    animation-delay: 1.5s;
}

/* CUSTOM */
.order-card {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #fff;
}

.badge-orange {
    background-color: #f39c12;
    color: #fff;
}

.order-progress .step {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.3rem;
}

.order-progress .step .circle {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    line-height: 1.25rem;
    font-size: 0.85rem;
    color: #fff;
    margin-right: 0.75rem;
}

.order-progress .step.completed .circle {
    background-color: #007bff;
}

.order-progress .step.pending .circle {
    background-color: #6c757d;
}

.progress-bar-custom {
    height: 6px;
    background-color: #f39c12;
    border-radius: 3px;
}

.delivery-info {
    border: 1px solid #dee2e6;
    border-radius: 0.3rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background-color: #e9f1ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-call {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
}

.profile-box {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.profile-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.profile-box .avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-right: 0.75rem;
    user-select: none;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.profile-box .name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.profile-box .rating {
    display: flex;
    font-size: 0.8rem;
    color: #ffc107;
    align-items: center;
}

.order-status-badge {
    font-size: 0.85rem;
    padding: 0.3em 0.8em;
    border-radius: 15px;
    font-weight: 600;
    text-transform: capitalize;
}

.order-status-badge.delivered {
    background-color: #28a745;
    color: #fff;
}

.order-status-badge.cold-for-delivery {
    background-color: #f39c12;
    color: #fff;
}

.rate-button {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid #28a745;
    background-color: #d4edda;
    color: #155724;
    cursor: pointer;
    user-select: none;
}

.step {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
}

.step .circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
}

.step.completed .circle,
.step.current .circle {
    background-color: #007bff;
    color: white;
}

.step.completed {
    color: #007bff;
}

.step.current {
    font-weight: bold;
    color: #0056b3;
}

.step.pending {
    color: #adb5bd;
}

.step.cancelled .circle {
    background-color: #dc3545;
    color: white;
}

.step.cancelled {
    color: #dc3545;
}

.progress-bar-custom {
    background-color: #007bff;
}

.order-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.status-box {
    min-width: 120px;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.content {
    padding: 6vw 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .content {
        padding: 10vw 0;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 10vw 0;
    }
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
    #dropdown-variation-demo .btn-group .text-truncate {
        width: 300px;
        position: relative;
    }
    #dropdown-variation-demo .btn-group .text-truncate::after {
        position: absolute;
        top: 45%;
        right: 0.65rem;
    }
    .content {
        padding: 15vw 0;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .floating-card {
        display: none;
    }
}

.pt-6-25rem {
    padding: 5.25rem 0;
}

.vendor-card {
    border-radius: 10px;
    overflow: hidden;
}

.vendor-img {
    height: 300px;
    object-fit: cover;
}

.cuisine-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: white;
    color: black;
    font-weight: bold;
}

.closed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
}
