﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

#myCarousel {
    height: 500px;
    margin-bottom: 60px;
    width: 100%;
}

.brand-link .brand-image {
    margin-top: 4px;
    max-height: 22px;
}

/*
.highlight-added {
    background-color: green !important;    
    transition: background-color 3s;
}
*/


@keyframes fadeOut {
    0% {
        background-color: yellow;
    }

    100% {
        background-color: transparent;
    }
}

.highlight-added {
    animation: fadeOut 3s; /* Adjust the animation duration as needed */
}

.btn-icon {
    padding: 0.2rem 0.35rem;
    font-size: 0.85rem;
    line-height: 1;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.text-uppercase {
    letter-spacing: 0.03em; /* AdminLTE often uses too much */
}

.dataTables_filter input {
    margin-left: .5rem;
}

.swal-actions-gap {
    gap: 0.75rem; /* adjust: .5rem / 1rem / etc. */
}


.swal2-popup .swal2-actions {
    justify-content: flex-end !important;
    gap: 0.5rem !important;
}

.swal2-popup .swal2-actions .swal2-cancel {
    order: 1 !important;
}

.swal2-popup .swal2-actions .swal2-confirm {
    order: 2 !important;
}

/* Allow text selection in SweetAlert dialogs for copy/paste */
.swal2-popup .swal2-html-container,
.swal2-popup .swal2-content,
.swal2-popup #swal2-content {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* Position Switcher Dropdown Styling */
#positionMenu {
    min-width: 380px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

#positionMenu .dropdown-item {
    color: #212529;
    padding: 0.5rem 1rem;
    white-space: normal;
}

#positionMenu .dropdown-item:hover,
#positionMenu .dropdown-item:focus {
    background-color: #f8f9fa;
    color: #212529;
}

#positionMenu .dropdown-item.active {
    background-color: #f8f9fa;
    color: #212529;
    font-weight: 500;
}

#positionMenu .dropdown-item.active:hover {
    background-color: #e9ecef;
}

#positionMenu .dropdown-item.active .text-muted {
    color: #6c757d !important;
}

#positionMenu .dropdown-item .badge {
    background-color: #6c757d;
    color: #fff;
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 0.5rem;
}

#positionMenu .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#positionMenu .dropdown-item-text {
    color: #6c757d;
    padding: 0.5rem 1rem;
}

/* User Initials Circle (navbar user menu) */
.user-initials-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--brand-primary, #0d6efd);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
}

/* User Profile Dropdown (Microsoft-style) */
.user-profile-dropdown {
    min-width: 280px;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}
.user-profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--brand-primary, #0d6efd);
    color: white;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.user-profile-name {
    font-weight: 600;
    font-size: 1rem;
}
.user-profile-email {
    font-size: 0.85rem;
}