@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

body {
  font-family: "Google Sans", sans-serif;
  font-weight: normal;
  font-style: normal;
}


.icon-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #242c58; 
    color: #fff; 
    border-radius: 50%;
    font-size: 18px;
}

/* Override all primary buttons */
.btn-primary {
    background-color: #242c58 !important; /* Navy blue background */
    border-color: #242c58 !important;    /* Navy blue border */
    color: #FFFFFF !important;          /* White text */
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1a214c !important; /* Darker navy blue on hover/focus */
    border-color: #1a214c !important;    /* Matching border color */
    color: #FFFFFF !important;
}


.custom-link{
    color: #ef9a14 !important; /* Navy blue text */
    text-decoration: none !important; /* Remove underline */
}

.text-primary{
    color: #242c58 !important; /* Navy blue text */
    text-decoration: none !important; /* Remove underline */
}
/* Override all links */
a {
    color: #1b213b !important; /* Navy blue text */
    text-decoration: none !important; /* Remove underline */
}

/* Override sidebar link colors */
.side-nav-link,
.side-nav-link:hover,
.side-nav-link:focus {
    color: #FFFFFF !important; /* Ensure sidebar links stay white */
}

/* Sidebar title text */
.side-nav-title {
    color: #FFFFFF !important; /* Sidebar titles stay white */
}

/* from chatgpt */

.account-user-avatar img.rounded-circle {
    background: transparent !important;
    box-shadow: none !important;
}

.account-user-avatar {
    background: transparent !important;
    box-shadow: none !important;
}

/* Make the topbar profile container pure white and remove shadow */
.topbar .nav-user .account-user-avatar {
    background: #fff !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure the image itself has no background */
.topbar .nav-user .account-user-avatar img {
    background: transparent !important;
}

/* ===== avatar: force white background and remove any shadow ===== */

/* generic targets to make sure we hit the element that has the white box */
.topbar .account-user-avatar,
.topbar .nav-user .account-user-avatar,
.navbar-custom .topbar .account-user-avatar,
.nav-user .account-user-avatar {
    background-color: #fff !important;    /* match topbar white */
    box-shadow: none !important;          /* remove shadow */
    -webkit-box-shadow: none !important;
    border: 0 none !important;            /* remove border if any */
    padding: 0 !important;                /* remove extra inner spacing */
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    overflow: visible !important;
}

/* remove pseudo-element shadows (some themes use ::before or ::after) */
.topbar .account-user-avatar::before,
.topbar .account-user-avatar::after,
.nav-user .account-user-avatar::before,
.nav-user .account-user-avatar::after {
    content: none !important;
    box-shadow: none !important;
}

/* ensure the image itself has no background or shadow */
.topbar .account-user-avatar img,
.navbar-custom .topbar .account-user-avatar img,
.topbar .nav-user img {
    background: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: block !important;
    object-fit: cover !important;
}

/* in case the toggle/link around avatar has background or shadow */
.topbar .nav-link.nav-user,
.topbar .nav-link.nav-user .account-user-avatar {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 none !important;
}




/* ends here */

/* Toast Container */
#toast-container {
    position: fixed;
    top: 20px; /* Adjust as needed */
    right: 20px; /* Ensure it's from the right edge */
    z-index: 1050;
    max-width: 400px; /* Increased width for longer text */
}

/* Toast Animations */
.toast {
    opacity: 0; /* Start as invisible */
    transition: opacity 0.5s ease-in-out; /* Fade-in effect */
    animation: fadeIn 0.5s forwards, shake 0.5s forwards; /* Animation */
    position: relative; /* For progress bar positioning */
    border-radius: 0.5rem; /* Rounded corners */
    overflow: hidden; /* Hide progress bar overflow */
}

/* Keyframes for fade-in effect */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Keyframes for shake effect */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}

/* Progress Bar Under Toast */
.toast::after {
    content: '';
    display: block;
    height: 4px; /* Height of the progress bar */
    background-color: rgba(0, 0, 0, 0.2); /* Background color */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    animation: progress 4s linear; /* Adjust duration as needed */
}

/* Keyframes for progress bar */
@keyframes progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Remove close button styling */
.toast .btn-close {
    display: none; /* Hide the close button */
}

/* Ensure icons are larger */
.toast-body i {
    font-size: 2rem; /* Increase icon size */
    margin-right: 10px; /* Space between icon and text */
}

/* Optional: Adjust text wrapping */
.toast-body span {
    display: block;
    word-wrap: break-word; /* Break long words if necessary */
}


.offcanvas {
    width: 500px !important;
}



  
.rent{
    position: relative !important;
    left: -38px !important;
    margin-top: 20px !important;
  }

  
/* This is the Image preview css */
.img-preview-box img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
}

        /* Custom Modal Styles */
        .modal-content {
            border: none;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
            backdrop-filter: blur(10px);
            overflow: hidden;
        }

        .modal-header {
            background: linear-gradient(135deg, #f59509 0%, #1b213b 100%);
            color: white;
            border: none;
            padding: 25px 30px;
            position: relative;
        }

        .modal-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(245, 149, 9, 0.1) 0%, rgba(27, 33, 59, 0.1) 100%);
            backdrop-filter: blur(10px);
        }

        .modal-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
            position: relative;
            z-index: 1;
        }

        .btn-close {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 35px;
            height: 35px;
            opacity: 1;
            position: relative;
            z-index: 1;
            transition: all 0.3s ease;
        }

        .btn-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: rotate(90deg);
        }

        .btn-close:focus {
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
        }

        .modal-body {
            padding: 40px 30px;
            background: #fff;
            min-height: 200px;
        }

        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }

        .custom-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(245, 149, 9, 0.2);
            border-top: 4px solid #f59509;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .loading-text {
            color: #1b213b;
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.7; }
            50% { opacity: 1; }
        }

        .loading-dots {
            color: #f59509;
            font-size: 1.5rem;
            margin-top: 10px;
            animation: dots 1.5s ease-in-out infinite;
        }

        @keyframes dots {
            0%, 20% { opacity: 0; }
            50% { opacity: 1; }
            100% { opacity: 0; }
        }

        .modal-footer {
            background: #f8f9fa;
            border: none;
            padding: 20px 30px;
            display: flex;
            justify-content: flex-end;
            gap: 15px;
        }

        .btn-secondary {
            background: #6c757d;
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-secondary:hover {
            background: #5a6268;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
        }

        .btn-primary {
            background: linear-gradient(135deg, #f59509 0%, #1b213b 100%);
            border: none;
            border-radius: 12px;
            padding: 12px 24px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(245, 149, 9, 0.4);
        }

        .btn-primary:disabled {
            background: linear-gradient(135deg, rgba(245, 149, 9, 0.6) 0%, rgba(27, 33, 59, 0.6) 100%);
            transform: none;
            box-shadow: none;
        }

        /* Modal backdrop animation */
        .modal.fade .modal-dialog {
            transform: translate(0, -50px) scale(0.9);
            transition: all 0.3s ease-out;
        }

        .modal.show .modal-dialog {
            transform: translate(0, 0) scale(1);
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .modal-header,
            .modal-body,
            .modal-footer {
                padding-left: 20px;
                padding-right: 20px;
            }

            .modal-title {
                font-size: 1.3rem;
            }

            .loading-container {
                padding: 30px 15px;
            }
        }

        /* Product details styles (for when content loads) */
        .product-detail-card {
            background: #fff;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            margin-bottom: 20px;
        }

        .product-detail-title {
            color: #1b213b;
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .product-detail-price {
            color: #f59509;
            font-size: 2rem;
            font-weight: 800;
            margin-bottom: 15px;
        }

        .product-detail-description {
            color: #6c757d;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .product-detail-badge {
            background: linear-gradient(45deg, #f59509, #1b213b);
            color: white;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            display: inline-block;
        }


    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 25px;
        padding: 20px 0;
    }
    
    .product-card {
        background: #fff;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: all 0.3s ease;
        border: none;
        position: relative;
    }
    
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }
    
    .product-image {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 20px 20px 0 0;
        background: linear-gradient(135deg, #f59509 0%, #1b213b 100%);
        position: relative;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-image-placeholder {
        width: 100%;
        height: 220px;
        background: linear-gradient(135deg, #f59509 0%, #1b213b 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 18px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .product-card-body {
        padding: 25px;
    }
    
    .product-title {
        font-size: 18px;
        font-weight: 700;
        color: #1b213b;
        margin-bottom: 8px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .vendor-info {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        color: #7f8c8d;
        font-size: 14px;
    }
    
    .vendor-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(45deg, #f59509, #1b213b);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        margin-right: 10px;
        font-size: 12px;
    }
    
    .price-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 12px;
    }
    
    .product-price {
        font-size: 24px;
        font-weight: 800;
        color: #f59509;
        margin: 0;
    }
    
    .commission-info {
        text-align: right;
    }
    
    .commission-rate {
        font-size: 14px;
        color: #1b213b;
        font-weight: 600;
        margin: 0;
    }
    
    .commission-amount {
        font-size: 12px;
        color: #7f8c8d;
        margin: 0;
    }
    
    .action-buttons {
        display: flex;
        gap: 10px;
    }
    
    .btn-promote {
        flex: 1;
        background: linear-gradient(135deg, #f59509 0%, #1b213b 100%);
        border: none;
        color: white;
        padding: 12px 20px;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .btn-promote:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(245, 149, 9, 0.4);
        color: white;
    }
    
    .btn-preview {
        background: #fff;
        border: 2px solid #e9ecef;
        color: #6c757d;
        padding: 12px 16px;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .btn-preview:hover {
        border-color: #f59509;
        color: #f59509;
        background: #fff8f0;
    }
    
    .page-header {
        background: linear-gradient(135deg, #f59509 0%, #1b213b 100%);
        color: white;
        padding: 40px 0;
        border-radius: 20px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 10px;
    }
    
    .page-header p {
        font-size: 0.8rem;
        opacity: 0.9;
        margin: 0;
    }
    
    .stats-row {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .stat-card {
        flex: 1;
        background: white;
        padding: 20px;
        border-radius: 15px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    
    .stat-number {
        font-size: 2rem;
        font-weight: 800;
        color: #f59509;
        margin-bottom: 5px;
    }
    
    .stat-label {
        color: #7f8c8d;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .major-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: linear-gradient(45deg, #f59509, #1b213b);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .search-filter-section {
        background: white;
        padding: 25px;
        border-radius: 15px;
        margin-bottom: 30px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }
    
    .search-input {
        border: 2px solid #e9ecef;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 16px;
        width: 100%;
        transition: all 0.3s ease;
    }
    
    .search-input:focus {
        border-color: #f59509;
        box-shadow: 0 0 0 3px rgba(245, 149, 9, 0.1);
        outline: none;
    }
    
    @media (max-width: 768px) {
        .product-grid {
            grid-template-columns: 1fr;
            gap: 20px;
            padding: 15px;
        }
        
        .stats-row {
            flex-direction: column;
            gap: 15px;
        }
        
        .page-header h1 {
            font-size: 2rem;
        }
        
        .action-buttons {
            flex-direction: column;
        }
    }
    
.nav-user .account-user-avatar,
.nav-user .account-user-avatar img,
.nav-user .account-user-avatar img.rounded-circle {
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}
