.dashboard-card {
    border-radius: 12px;
    border: 1px solid #eee;
}

.bg-purple {
    background-color: #7c3aed;
}

.color-text-1{
	color: #6A7282 !important;
}

.bg-icon{
	background: #EFF6FF !important;
}

.auto-renew-switch {
    position: relative;
    width: 52px;
    height: 28px;
}

.auto-renew-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.auto-renew-switch label {
    position: absolute;
    cursor: pointer;
    background-color: #e5e7eb; /* light gray off state */
    border-radius: 50px;
    width: 100%;
    height: 100%;
    transition: 0.3s ease;
}

.auto-renew-switch label::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s ease;
}

/* ON STATE */
.auto-renew-switch input:checked + label {
    background-color: #4338ca; /* purple like image */
}

.auto-renew-switch input:checked + label::before {
    transform: translateX(24px);
}


.table td,
.table th {
    padding-top: 18px;
    padding-bottom: 18px;
}
.accordion-button {
    background: transparent;
    box-shadow: none;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background: transparent;
    box-shadow: none;
}

/* Hide dropdown by default */
.cart-dropdown-wrapper .cart-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* below the cart icon */
    right: 0;
    width: 250px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

/* Show dropdown */
.cart-dropdown-wrapper.active .cart-dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* Cart item styling */
.cart-item {
    font-size: 14px;
}

.cart-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: red;
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove button */
.remove-item {
    font-size: 14px;
    line-height: 1;
    padding: 0 6px;
}

/* Dropdown scrollable if too many items */
.cart-dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}
.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin-top: 8px;
    background: linear-gradient(90deg, #4e73df, #1cc88a); /* Custom gradient */
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #fff;
}

.view-all-btn i {
    font-size: 16px;
}


/* Hide dropdown by default */
.profile-dropdown-wrapper .profile-dropdown-menu {
    display: none;
    position: absolute;
    top: 110%; /* below the button */
    right: 0;
    width: 180px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

/* Show dropdown */
.profile-dropdown-wrapper.active .profile-dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* Dropdown items */
.profile-dropdown-wrapper .dropdown-item {
    font-size: 14px;
    padding: 8px 12px;
    color: #333;
    transition: background 0.2s ease;
}

.profile-dropdown-wrapper .dropdown-item:hover {
    background-color: #f1f1f1;
    color: #000;
}

/* Optional: Icon styling */
.profile-dropdown-wrapper .dropdown-item i {
    font-size: 16px;
}


@media (max-width: 767px) {

    /* Cart Dropdown Mobile */
    .cart-dropdown-wrapper .cart-dropdown-menu {
        width: 95%;           /* almost full screen */
        left: 50%;            /* center horizontally */
        right: auto;
        transform: translate(-50%, -10px); /* center + slide up for animation */
        max-height: 300px;    /* scroll if too tall */
    }

    /* Increase tap area and font size for cart items */
    .cart-dropdown-wrapper .cart-item {
        font-size: 16px;
        padding: 12px 16px;
    }

    /* Make View All button larger and easier to tap */
    .view-all-btn {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    /* Make cart dot slightly larger */
    .cart-dot {
        width: 18px;
        height: 18px;
        font-size: 12px;
        top: -4px;
        right: -4px;
    }

    /* Profile Dropdown Mobile */
    .profile-dropdown-wrapper .profile-dropdown-menu {
        width: 90%;          /* almost full screen */
        left: 50%;
        right: auto;
        transform: translate(-50%, -10px);
        top: 120%;           /* slightly below the button */
    }

    /* Increase font size and padding for profile items */
    .profile-dropdown-wrapper .dropdown-item {
        font-size: 16px;
        padding: 12px 16px;
    }
}


.bg-warning-subtle{
    background:#FEF3C7;
}
.bg-orange-subtle{
    background:#FFE4D6;
}
.text-orange{
    color:#ea580c;
}
.modal-content{
    border-radius:12px;
}


.impact-high{
    background:#FEE2E2;
    color:#B91C1C;
    font-weight:500;
}

.impact-medium{
    background:#FEF3C7;
    color:#92400E;
    font-weight:500;
}

.modal-content{
    border-radius:12px;
}


.php-option{
    cursor:pointer;
    transition:all .15s ease;
}

.php-option:hover{
    border-color:#3b82f6;
    background:#f8fbff;
}

.php-option.active{
    border-color:#2563eb;
    background:#eff6ff;
}

.bg-success-subtle{ background:#DCFCE7; }
.bg-primary-subtle{ background:#DBEAFE; }
