﻿.table-d 
{
    position: sticky;
    top: 0;
    background-color: #ffff;
    z-index: 10;
    border-bottom: 1px solid orange;
}
.table-responsive {
    border-radius: 12px;
}

.subh {
    border-radius: 12px;
    text-align: center;
}


.AddingForm {
    border-radius: 35px;
}

.btn-success {
    background: linear-gradient(to right, #1E2268, #4148C8);
    border: none;
}

.btn:hover {
    color:white !important;
}

.btn-danger {
    background: #e74c3c;
    border: none;
}




/* Minimal CSS to force scrollbar visibility */
.scroll-container {
    -ms-overflow-style: auto !important;
    scrollbar-width: auto !important;
}

    .scroll-container::-webkit-scrollbar {
        height: 6px;
    }

    .scroll-container::-webkit-scrollbar-thumb {
        background: #9DA4AA;
        border-radius: 5px;
    }

.card-gift {
    border-color: #DA291C;
    width: 200px;
    height: 230px;
    border-radius: 15px;
    padding: 0px;
}
@media (min-width: 768px) {
    .card-gift {
        border-color: #DA291C;
        width: 200px;
        height: 300px;
        border-radius: 15px;
        padding: 0px;
    }
}
    .card-gift-img {
        min-height: 50px !important;
    }

    .custom-card {
        border-radius: 20px;
        padding: 7px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .invoice-number {
        font-size: 1.3rem;
        font-weight: 700;
        color: #1b2b57;
    }

    .date-text {
        font-size: 0.8rem;
        color: #9aa3b1;
    }

    .label {
        font-weight: 600;
        color: #000;
    }

    .value {
        color: #333;
    }

    .star {
        color: #f1c40f;
        font-size: 1.2rem;
        margin-right: 5px;
    }


    .bills-card {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #fff;
        border-radius: 12px;
        padding: 15px 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        width: fit-content;
    }

    .bills-icon {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .bills-icon i {
            font-size: 35px;
            color: #fff8d9;
        }

    .bills-text {
        text-align: center;
    }




    .points-card {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #fff;
        border-radius: 12px;
        padding: 15px 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        width: fit-content;
    }

    .points-icon {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .points-icon i {
            font-size: 35px;
            color: #fff8d9;
        }

    .points-text {
        text-align: center;
    }


.title 
{
    border-radius: 10px 10px 10px 10px;
}

@media (min-width: 768px) {
    
    .title {
        border-radius: 10px 0px 0px 10px;
    }

}
    .content-div {
        border-radius: 10px;
    }

    body {
        position: relative;
        margin: 0;
        min-height: 100vh;
        font-family: "Roboto Condensed", "Roboto", "Helvetica", sans-serif;
        color: #333;
        line-height: 1.6;
    }

        body::before {
            content: "";
            position: fixed; /* stays fixed while scrolling */
            top: auto;
            left: auto;
            width: 100%;
            height: 100%;
            background: url("../images/bg_image.jpg");
            background-size: cover;
            z-index: -1; /* keeps it behind all content */
        }



    .bordered {
        border: 2px solid white;
    }

    .swal2-popup {
        border: 7px solid white;
        border-radius: 50px !important; /* adjust the radius as you like */
    }




    .table > :not(:last-child) > :last-child > * {
        border-bottom-color: #DA291C;
    }

    .table-d th {
        color: black;
        border-color: #DA291C;
    }

    .input-group-adding-rows {
        width: 30%;
    }


    .rounded-btn.active {
        background: #7a6b4f;
        border-color: #65583f;
        position: relative;
        padding-right: 40px;
    }

        .rounded-btn.active::after {
            content: "✓";
            position: absolute;
            right: 15px;
            font-weight: bold;
        }



    .rounded-btn {
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        border: 2px;
        background: #1E2268;
        color: black;
    }

    .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
        margin-left: 0 !important;
        border-top-left-radius: 10px !important;
        border-bottom-left-radius: 10px !important;
    }



    .delete-btn {
        background: #DA291C;
        color: white;
        border: none;
        font-size: 16px;
        font-weight: bold;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .total-card {
        border: 4px solid #35b59d; /* greenish border */
        border-radius: 40px 15px 15px 0px; /* rounded corners */
        background: white;
    }


    /* Pagination Container */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px; /* Space between items */

        font-family: Arial, sans-serif;
    }

    .page-item.active .page-link {
        z-index: 3;
        color: white;
        background-color: #1E2268;
        border-color: #1E2268;
    }


    .page-link:hover, .page-link:focus {
        z-index: 2;
        color: white;
        background-color: #1E2268;
        border-color: #1E2268;
        box-shadow: -1px 2px 12px 1px #1E2268;
    }


    /* Pagination Links */
    .pagination a,
    .pagination strong {
        display: inline-block;
        padding: 8px 12px;
        text-decoration: none;
        color: #333;
        border: 1px solid #ddd;
        border-radius: 4px;
        transition: background-color 0.3s, color 0.3s;
    }

        /* Hover Effect */
        .pagination a:hover {
            background-color: white;
            color: black;
            border-color: #007bff;
        }

    /* Current Page */
    .pagination strong {
        background-color: white;
        color: black;
        border-color: #007bff;
        cursor: default;
    }

    /* Previous and Next Buttons */
    .pagination-prev,
    .pagination-next {
        background-color: #f8f9fa;
        border-color: #ddd;
    }

        .pagination-prev:hover,
        .pagination-next:hover {
            background-color: #007bff;
            color: #fff;
            border-color: #007bff;
        }

    /* Disabled State for Previous/Next */
    .pagination a[disabled] {
        pointer-events: none;
        opacity: 0.6;
        background-color: #f8f9fa;
        border-color: black;
        color: #999;
    }



    .page-link {
        border-radius: 6px;
    }

    .pagination button {
        background-color: white;
        color: black;
        border-color: #1E2268;
        border-width: 3px;
    }

    .navbar {
        background-color: white;
        color: black;
        border-radius: 50px 50px 50px 50px;
    }

    .navbar-light .navbar-nav .nav-link {
        color: black;
    }

    .nav-link {
        color: black;
        border-radius: 10px;
    }

    .nav-item {
        color: black;
    }

    .nav-link:hover {
        color: white;
        border-radius: 10px;
    }

    nav-link:focus {
        color: white;
    }






    .nav-item {
        font-weight: bold;
        color: white;
    }

    .navbar-toggler {
        border-color: black !important;
        border-width: 2px !important;
        color: black;
    }


    .dropdown-menu.show {
        border-width: 4px;
        border-color: black;
    }



    .nav-link {
        color: black;
        border-radius: 10px !important;
    }

        .nav-link:hover {
            color: white !important;
            background: #1E2268;
            border-radius: 10px;
        }

        .nav-link:focus {
            color: white !important;
            background: #1E2268;
            border-radius: 10px;
        }







    .dropdown-menu.show {
        border-width: 4px;
        border-color: #1E2268;
    }




    .dropdown-item {
        border-width: 4px;
        border-color: #1E2268;
        text-align: center;
    }

        .dropdown-item:focus, .dropdown-item:hover {
            border-width: 4px;
            background-color: #1E2268;
            color: black;
        }



    .dropdown-item {
        border-width: 4px;
        border-color: black;
        text-align: center;
    }

        .dropdown-item:focus, .dropdown-item:hover {
            border-width: 4px;
            background-color: #1E2268;
            color: black;
        }


    a:hover {
        background: #1E2268;
        color: white !important;
    }

    primary {
        background: white;
    }

    .btn:focus, .btn:hover, .form-control:hover, .form-control:focus {
        box-shadow: 0 0 0 0.1rem, 0 0 0 0.25rem white;
        color: black;
        border-color: black;
    }

    .custom-button {
        border-top-right-radius: 10px;
        border-bottom-left-radius: 10px;
        border: 2px;
        background: linear-gradient(to right, #1E2268, #4148C8);
        color: white;
    }

        .custom-button:hover {
            color: white;
        }



    thead {
        position: relative;
    }





    .table th {
        font-weight: bold;
        text-align: center;
    }








    .table {
        width: 100%; /* or fixed width like 1500px */
        text-align: center; /* horizontal center */
        vertical-align: middle; /* vertical center */
    }


    .form-control, .form-select, textarea, .form-control:hover, .form-select:hover, textarea:hover, .form-control:focus, .form-select:focus, textarea:focus, select, select:hover, select:focus {
        border-radius: 8px;
        color: black;
    }

    select {
        color: #333; /* Dark gray */
    }





    .custom-card {
        border-radius: 15px;
        border-color: #1E2268;
        box-shadow: 0 12px 12px rgba(E, 0, 0, 0.1);
        overflow: hidden;
    }

    .custom-card-header {
        background: white;
        height: 6px;
    }

    .custom-card-body {
        padding: 1.5rem;
    }

    .card-row {
        border-bottom: 2px solid #1E2268;
        padding: 1rem 0;
    }

        .card-row:last-child {
            border-bottom: none;
        }

    .label {
        font-weight: bold;
        font-size: 1.1rem;
    }

    .value {
        font-size: 1.2rem;
        direction: ltr; /* for numbers */
    }
