.text-small {
    font-size: 85%;
    line-height: 55%;
}

.dropdown-toggle:not(:focus) {
    outline: 0;
}

/* Hide elements with mobile-only class on desktop and classes with desktop-only on mobile */
@media (min-width: 992px) {
    .mobile-only {
        display: none;
    }
    :root {
        --body-margin: 2vh;
    }
}
@media (max-width: 992px) {
    body {
        padding: 0vh;
    }
    .desktop-only {
        display: none;
    }
    :root {
        --body-margin: 1vh;
    }
}
textarea { resize: none; }

/* Login Form */
.gradient-custom-2 {
    /* fallback for old browsers */
    background: #fccb90;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);
}

@media (min-width: 768px) {
    .gradient-form {
        height: 100vh !important;
    }
}
@media (min-width: 769px) {
    .gradient-custom-2 {
        border-top-right-radius: .3rem;
        border-bottom-right-radius: .3rem;
    }
}

html {
    height: 100%;
    background-image: url('/assets/sgmu/background.jpg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

body {
    height: calc(100% - 2 * var(--body-margin)); /* Adjusted height calculation */
    background-color: rgba(23, 23, 23, 0.85);
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    margin: var(--body-margin);
    border-radius: 15px;
    overflow: auto; /* Enable scrolling when content overflows */
}

.content {
    max-height: 100%;
    min-height: 100%;
    overflow: auto; /* Ensure content scrolls within the body */
    padding: 20px; /* Optional: Add some padding for better spacing */
}

.dropdown-menu {
    background-color: hsl(0, 0%, 0%, 0%);
    backdrop-filter: blur(100px) !important;
    -webkit-backdrop-filter: blur(100px) !important;

    margin: 2vh;
    padding: 0px;
    border-radius: 15px;
    box-shadow: none;
    border-color: hsl(0, 0%, 0%, 15%);
    border-width: 1px;
}

.dropdown-item:hover {
    background-color: hsl(0, 0%, 0%, 15%) !important;
    border-radius: 15px;
}

/* Dropdown animation */
@media (min-width: 768px) {
    .animate {
        animation-duration: 0.3s;
        -webkit-animation-duration: 0.3s;
        animation-fill-mode: both;
        -webkit-animation-fill-mode: both;
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(1rem);
        opacity: 0;
    }

    100% {
        transform: translateY(2.5rem);
        opacity: 1;
    }

    0% {
        transform: translateY(1rem);
        opacity: 0;
    }
}

@-webkit-keyframes slideIn {
    0% {
        -webkit-transform: transform;
        -webkit-opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        -webkit-opacity: 1;
    }

    0% {
        -webkit-transform: translateY(1rem);
        -webkit-opacity: 0;
    }
}

.slideIn {
    -webkit-animation-name: slideIn;
    animation-name: slideIn;
}

:root {
    --bs-table-bg: transparent !important;
}

.list-group, .list-group-item, .table {
    background-color: rgba(0,0,0,0.1);
    border-color: rgba(69, 75, 81, 0.5);
    border-radius: 15px;
}

.lastelement {
    border-bottom-style: none !important;
}

thead, tbody, th, tr, td {
    background-color: transparent !important;
}

.w-75-c {
    width: 75%;
}

@media (max-width: 992px) {
    .w-75-c {
        width: 100%;
    }
}

.fficon {
    font-size: 225%;
    line-height: 100%;
    color: #0091f2;
    vertical-align: middle;
}