﻿
/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*input,
select,
textarea {
    max-width: 280px;
}
*/
.bg-title-users {
    background-color: #c92a2a !important;
}

.bg-title-matches {
    background-color: #9b0909 !important;
}

.view-profile-admin {
    cursor: pointer;
    text-decoration:none;
}
    .view-profile-admin:hover {
        text-decoration: underline;
    }

.view-match-admin {
    cursor: pointer;
    border: 1px solid #064ffc00;
    border-radius: 25px;
    text-decoration: none;
    color: #000;
}
    .view-match-admin:hover {
        border: 1px solid #064ffc;
    }
.user-menu img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .user-menu-offcanvas {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 250px;
        background-color: #fff;
        z-index: 1050;
        padding: 1rem;
        display: none;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    }

        .user-menu-offcanvas.active {
            display: block;
        }

    .user-menu-toggle {
        background: none;
        border: none;
    }
}


.mobile-user-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    background: var(--mobile-user-menu-bg);
    color: var(--mobile-user-menu-fc);
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: transform 0.3s ease-in-out;
}

    .mobile-user-menu.open {
        display: block;
        animation: slideIn 0.3s forwards;
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}
@keyframes slideOut {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

.mobile-user-menu.closing {
    animation: slideOut 0.3s forwards;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--mobile-user-menu-fc);
}

/* Backdrop overlay behind mobile menu */
.mobile-user-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* semi-transparent dark */
    backdrop-filter: blur(3px); /* blurred effect */
    z-index: 1049; /* just below menu */
}

    /* Show backdrop when menu is open */
    .mobile-user-backdrop.show {
        display: block;
    }


.admin-user-table {
    max-height: 70vh;
    overflow-y: auto;
}
    .admin-user-table thead th {
        position: sticky;
        top: 0;
        background-color: #f8f9fa; /* Match your table header background */
        z-index: 2;
        box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    }
.admin-match-table {
    max-height: 70vh;
    overflow-y: auto;
}
    .admin-match-table thead th {
        position: sticky;
        top: 0;
        background-color: #f8f9fa; /* Match your table header background */
        z-index: 2;
        box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    }

body[data-theme="dark"] .admin-user-table thead th {
    background-color: #626262 !important;
    color: #f8f9fa !important;
}



@keyframes pulse {
    0%, 95%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.8;
    }
}
@keyframes pulsess {
    0% {
        transform: scale(0.2);
        opacity: 0.5;        
    }

    10% {
        transform: scale(1.12);
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: scale(1);        
    }
}
@keyframes shine {
    0% {
        left: -75%;
        opacity: 0;
    }

    2% {
        opacity: 1;
    }

    10% {
        left: 125%;
        opacity: 0;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

@keyframes shinecc {
    0% {
        left: -75%;
        opacity: 1;
    }

    10% {
        left: 90%;
    }

    100% {
        left: 125%;
        opacity:0;
    }
}


.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.45em;
    border-radius: 50%;
}


/*writable dropdown*/
/* Light theme (default) */
body[data-theme="light"] .bootstrap-select .dropdown-menu {
    background-color: #fff !important;
    color: #212529 !important;
}

    body[data-theme="light"] .bootstrap-select .dropdown-menu .dropdown-item {
        color: #212529 !important;
    }

        body[data-theme="light"] .bootstrap-select .dropdown-menu .dropdown-item.active,
        body[data-theme="light"] .bootstrap-select .dropdown-menu .dropdown-item:focus,
        body[data-theme="light"] .bootstrap-select .dropdown-menu .dropdown-item:hover {
            background-color: #e9ecef !important;
            color: #000 !important;
        }

/* Dark theme */
body[data-theme="dark"] .bootstrap-select .dropdown-menu {
    background-color: #1e1e1e !important;
    color: #f8f9fa !important;
}

    body[data-theme="dark"] .bootstrap-select .dropdown-menu .dropdown-item {
        color: #f8f9fa !important;
    }

        body[data-theme="dark"] .bootstrap-select .dropdown-menu .dropdown-item.active,
        body[data-theme="dark"] .bootstrap-select .dropdown-menu .dropdown-item:focus,
        body[data-theme="dark"] .bootstrap-select .dropdown-menu .dropdown-item:hover {
            background-color: #333 !important;
            color: #fff !important;
        }

/* Ensure the main select box also adapts */
body[data-theme="dark"] .bootstrap-select .btn {
    background-color: #1e1e1e !important;
    color: #f8f9fa !important;
    border-color: #444 !important;
}

body[data-theme="light"] .bootstrap-select .btn {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #ced4da !important;
}

/* Dark theme override for the toggle button */
body[data-theme="dark"] .bootstrap-select .dropdown-toggle.btn-light {
    background-color: #1e1e1e !important;
    color: #f8f9fa !important;
    border-color: #444 !important;
}

body[data-theme="dark"] .modal-header {
    background-color: #000 !important;
}
body[data-theme="dark"] .modal-body {
    background-color: #000 !important;
}

/* Base styling (applies to both themes) */
#filtYY {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 150px; /* optional fixed width */
}

/* Custom arrow for the select */
/*.form-group {
    position: relative;
    display: inline-block;
}
*/
#filtYY::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
}

/* Light Theme */
body[data-theme="light"] #filtYY {
    background-color: #fff;
    color: #212529;
    border-color: #ced4da;
}

    body[data-theme="light"] #filtYY:hover,
    body[data-theme="light"] #filtYY:focus {
        border-color: #4DA2BB;
        box-shadow: 0 0 6px rgba(77, 162, 187, 0.5);
    }

/* Dark Theme */
body[data-theme="dark"] #filtYY {
    background-color: #1e1e1e;
    color: #f8f9fa;
    border-color: #444;
}

    body[data-theme="dark"] #filtYY:hover,
    body[data-theme="dark"] #filtYY:focus {
        border-color: #4DA2BB;
        box-shadow: 0 0 6px rgba(77, 162, 187, 0.5);
    }


