.bg-red {
    background-color: #dc3545 !important;
}
.sidebar {
    width: 250px;
    background-color: #ffffff;
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
ebar::-webkit-scrollbar {
    display: none;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed ul li a span {
    display: none;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.sidebar ul li a i {
    margin-right: 15px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: black;
    /* keep your icon blue */
}

/* Hover Effects */
.sidebar ul li a:hover {
    background-color: #f6f9ff;
    color: #003287;
    border-left: 4px solid #dc3545;

    margin-left: 25px;
}

.sidebar ul li a {
    transition: all 0.5s ease;
    /* Adjust duration as needed */
}

/* Submenu */
.submenu {
    display: none;
    background-color: #f6f9ff;
    padding-left: 15px;

    transition: all 0.5s ease;
}

.submenu.open {
    display: block;
}

/* Arrow for submenu toggle */
.has-submenu .arrow {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.arrow.rotated {
    transform: rotate(180deg);
}

/* Toggle Button Bars */
.toggle-btn {
    width: 35px;
    height: 30px;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
}

.bars {
    height: 4px;
    background-color: #dc3545;
    border-radius: 2px;
    transition: all 0.4s ease;
}

/* Bar animations */
#checkbox:checked + .toggle-btn #bar1 {
    transform: rotate(45deg) translate(6px, 6px);
}

#checkbox:checked + .toggle-btn #bar2 {
    opacity: 0;
}

#checkbox:checked + .toggle-btn #bar3 {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar toggle using JS class, you still use .collapsed or .active in JS */
.sidebar {
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.active {
    left: 0;
}
@media (max-width: 768px) {
    .sidebar {
        left: -250px;
    }
    .sidebar.active {
        left: 0;
    }
    .main-content {
        margin-left: 0 !important;
    }

    .fw-bold {
        margin-left: 2rem;
    }
}

.main-content {
    margin-left: 250px;
    padding: 10px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    /* Ensures full screen height */
}

.main-content.expanded {
    margin-left: 60px;
}

.sidebar-logo {
    background-image: url("./assets/images/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 50%;
    /* Set desired width */
    height: 70px;
    /* Set desired height */
    display: block;
    margin-left: 5rem;
    margin-top: -2rem;

    /* Center it if needed */
}

.custom-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.btn-custom {
    border: none;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #dc3545;
    transition: all 500ms;
    font-size: 18px;
    position: relative;
    overflow: hidden;
    outline: 2px solid#dc3545;
}

.btn-custom::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #dc3545;
    transform: skewX(45deg);
    z-index: -1;
    transition: width 500ms;
}

.btn-custom:hover::before {
    width: 200%;
}

/* Title */
.form-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #dc3545;
    border-bottom: 2px dashed #dc3545;
    display: inline-block;
    padding-bottom: 8px;
}

/* Input Fields */
.custom-input {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    transition: 0.3s;
}

.custom-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.2);
}

/* Labels */
.form-label {
    font-weight: 500;
    color: #333;
}

/* Save Button */
.btn-save {
    background: #dc3545;
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #b02a37;
    transform: scale(1.05);
}

.preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #dc3545;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    transition: transform 0.3s ease;
}

.preview-img:hover {
    transform: scale(1.1);
}

/* ---------- General ---------- */

/* ---------- Wrapper ---------- */
.mlogin-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.bg-login {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #c3323a 50%, #ffe6e6 40%);
    font-family: 'Poppins', sans-serif;
}

/* Login card */
.mlogin-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    animation: fadeInUp 0.8s ease;
}

/* ---------- Header ---------- */
.mlogin-header {
    margin-bottom: 30px;
}
.mlogin-icon-wrap {
    margin-bottom: 15px;
}
.mlogin-icon {
    width: 100px;
    height: 70px;
    animation: bounce 2s infinite;
}
.mlogin-title {
    font-size: 24px;
    font-weight: 700;
    color: #c3323a;
}
.mlogin-sub {
    font-size: 14px;
    color: #6c757d;
}

/* ---------- Input Fields ---------- */
.mlogin-input-group {
    position: relative;
    margin-bottom: 20px;
}
.mlogin-input-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}
.mlogin-input {
    padding: 12px 12px 12px 40px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    font-size: 15px;
    transition: all 0.3s ease;
}
.mlogin-input:focus {
    border-color: #c3323a;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

/* ---------- Button ---------- */
.mlogin-btn {
    background: #c3323a;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    transition: all 0.3s ease;
}
.mlogin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 110, 253, 0.35);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Make sure preview containers are same layout and spacing */
#previewContainer,
#profilePreviewContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Optional: small wrapper class for profile preview (keeps same look as product previews) */
.profile-preview-wrapper .preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Keep close button visible and positioned consistently */
.position-relative.d-inline-block .btn,
.profile-preview-wrapper .btn {
    border-radius: 50%;
    transform: translate(-30%, -30%);
}






/* MODEL--update SUCCESSFULLY MESSAGES */
/* ✅ Tick animation */
#successModal .modal-content {
    background-color: #ffffff !important; /* white background */
    color: #ff0000 !important;           /* red text */
    border-radius: 20px;
    text-align: center;
    padding: 2rem;
}

/* Checkmark circle */
.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    background: #ffffff; /* white circle background */
    margin: 0 auto 1rem;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Tick mark */
.checkmark {
    display: inline-block;
    width: 40px;
    height: 20px;
    border-left: 5px solid #ff0000;  /* red tick */
    border-bottom: 5px solid #ff0000; /* red tick */
    transform: rotate(-45deg);
    position: absolute;
    top: 24px;
    left: 20px;
    opacity: 0;
}

.checkmark.draw {
    animation: drawCheck 0.6s ease forwards 0.3s;
}

@keyframes drawCheck {
    from { opacity: 0; transform: rotate(-45deg) scale(0.5); }
    to   { opacity: 1; transform: rotate(-45deg) scale(1); }
}

/* OK button */
#successModal button#ok {
    background-color: #ffffff;
    color: #ff0000;
    border: 1px solid #705f5f;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
}

@keyframes drawCheck {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-45deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(-45deg);
    }
}
