﻿.navbar {
    position: fixed;
    width: 100%;
    z-index: 1030; /* Ensure navbar stays on top */
}
.card {
    border-radius: 16px;
}

.card-body {
    padding: 1rem 0.75rem;
}
.dropdown-menu {
    list-style: none;
    padding: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .dropdown-menu a {
        align-items: center;
        padding: 15px;
        font-size: 16px;
        border-bottom: 1px solid #eee;
        transition: background 0.3s ease;
    }

        .dropdown-menu a:last-child {
            border-bottom: none;
        }

        .dropdown-menu a i {
            margin-right: 10px;
            color: #3498db;
        }

        .dropdown-menu a:hover {
            background: #f0f0f0;
            cursor: pointer;
        }

/* Adjust position for different devices */
@media (min-width: 992px) {
    main {
        padding-bottom: 1rem !important;
    }
    .navbar {
        position: static; /* Desktop: navbar at the top */
    }

    .nav-link span {
        display: inline; /* Show text with icons */
    }

    .dropdown-menu {
        top: 10px;
        bottom: auto !important;
    }
    .custom-card {
        width: 100%;
        border: 1px solid #f1ecea;
        padding: 0px;
    }
    .container-fluid {
        padding: 1rem;
    }
}

@media (max-width: 991.98px) {

    main {
        padding-bottom: 6rem !important;
        margin-top:0px;
    }

    .navbar {
        bottom: 0; /* Mobile/Tablet: navbar at the bottom */
    }

    .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .nav-link span {
            display: block;
            text-align: center;
            font-size: 0.75rem; /* Adjust this to match the h1 size */
            line-height: 1.2; /* Adjust for proper vertical spacing */
        }

        .nav-link i {
            font-size: 1.15rem; /* Adjust icon size if necessary */
        }

    .dropdown-menu {
        top: auto !important;
        bottom: 100% !important;
    }

    .container-fluid {
        padding: 0rem;
    }

    .custom-card {
        width: 100%;
        max-width: 100%;
        margin: 0px 0px !important;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .card-header {
        border-radius: 0px;
    }

}

.form-floating > .form-control {
    padding: 0 20px;
    height: 40px;
    line-height: 1;
}

input[type=text] {
        padding: 5px !important;
        margin: 0 !important;
        height: 40px;
        max-width: 100%;
        border-radius: 4px !important;
    }

.form-floating > label {
    padding: 6px 6px 0;
    left: 10px;
    opacity: .2;
}

.form-floating > .form-control:focus {
    box-shadow: none;
}

.form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label, .form-floating > .form-select ~ label {
        opacity: 1;
        transform: scale(.85) translateY(-19px) translateX(1px);
        background: #fff;
        height: auto;
    }

.form-floating > .mb-3 {
    margin-bottom: 1rem !important;
}

.form-floating > .form-control, .form-floating > .form-control-plaintext, .form-floating > .form-select {
    min-height: calc(2.5rem + calc(var(--bs-border-width)* 2));
}

table td,
table th {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

thead th {
    color: #fff;
}

.table-scroll {
    border-radius: .5rem;
}

    .table-scroll table thead th {
        font-size: 1.25rem;
    }

thead {
    top: 0;
    position: sticky;
}
.card-header {
    padding: 0px;
    background-color: #f1ecea;
}
.card-header:first-child {
        border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
    }
.card-footer:last-child {
    border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px);
}
.card-title {
    margin-bottom: 0px;
    color: #5f15bd;
    /* font-family: "Archivo", Sans-serif; */
    /* font-size: 26px; */
    /* font-weight: 700; */
    letter-spacing: 1px;
    text-shadow: 0px 0px 1px #252525;
    mix-blend-mode: multiply;
}
.card-footer {
    background-color: #f1ecea;
    color: #5f15bd;
    letter-spacing: 0.5px;
    text-shadow: 0px 0px 1px #252525;
    mix-blend-mode: multiply;
}
