/* Layout Styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f7fa;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar styles */
.sidebar {
    width: 260px;
    background: linear-gradient(135deg, #3a3f44 0%, #2c3034 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-nav {
    padding: 0;
}

.sidebar-heading {
    padding: 0.5rem 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-heading.mt-5 {
    margin-top: 0 !important;
}

.sidebar-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-item:hover, .sidebar-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #0d6efd;
}

.sidebar-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Content styles */
.content-wrapper {
    flex: 1;
    margin-left: 260px;
    transition: all 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 2rem;
}

/* Top navbar styles */
.top-navbar {
    background: linear-gradient(135deg, #3a3f44 0%, #2c3034 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

.navbar-logo-container {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: auto;
}

.navbar-logo-icon {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.navbar-logo-container:hover .navbar-logo-icon {
    transform: scale(1.05);
}

.toggle-sidebar {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #6c757d;
    cursor: pointer;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    color: #343a40;
    text-decoration: none;
    background: #ffffff;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.user-dropdown-toggle:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tenant-badge {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Footer styles */
.dashboard-footer {
    background-color: white;
    padding: 1rem 2rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Summary Cards */
.summary-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.summary-card:hover {
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.summary-card .display-4 {
    margin-bottom: 1.25rem;
    font-size: 3rem;
}

.summary-card .btn {
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.summary-card:hover .btn {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Activity Cards */
.activity-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.activity-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.list-group-item-action {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.list-group-item-action:hover {
    background-color: rgba(13, 110, 253, 0.04);
    border-left: 3px solid #0d6efd;
    transform: translateX(3px);
}

/* Recent items cards */
.activity-card {
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.card-footer .btn {
    transition: all 0.2s ease;
}

.card-footer .btn:hover {
    transform: translateY(-3px);
}

/* Responsive sidebar */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-260px);
    }
    .content-wrapper {
        margin-left: 0;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

/* Required Field Styles */
.required-note {
    color: #dc3545;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.form-label {
    position: relative;
}

.form-label sup.required {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

/* Search Box Improvements */
.search-box {
    max-width: 320px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.search-box .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #6c757d;
    transition: all 0.3s ease;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border-color: #dee2e6;
}

.search-box .form-control {
    border-left: none;
    font-size: 0.9rem;
    box-shadow: none;
    transition: all 0.3s ease;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    border-color: #dee2e6;
    padding-left: 0;
}

.search-box:focus-within .input-group-text {
    border-color: #86b7fe;
    color: #0d6efd;
}

.search-box:focus-within .form-control {
    border-color: #86b7fe;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: #86b7fe;
}

/* Table Improvements */
.table-responsive {
    margin-bottom: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
}

.table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
}

.table th {
    font-weight: 600;
    color: #344767;
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    position: relative;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.table thead tr {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #495057;
    transition: all 0.2s ease;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr {
    transition: all 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.table .form-check {
    margin: 0;
}

.table .btn-group .btn {
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-right: 0.25rem;
}

.table .btn-group .btn:last-child {
    margin-right: 0;
}

.table .btn-outline-info:hover,
.table .btn-outline-primary:hover,
.table .btn-outline-danger:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.table .btn-outline-info {
    color: #0dcaf0;
    border-color: #0dcaf0;
}

.table .btn-outline-info:hover {
    background-color: #0dcaf0;
    color: #fff;
}

.table .btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.table .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
}

.table .btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.table .btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

.table .content-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.table .content-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Empty state styling inside tables */
.card-body .text-center.py-5 {
    padding: 3rem 0;
}

.card-body .text-center.py-5 i {
    color: #e9ecef;
    margin-bottom: 1.5rem;
}

.card-body .text-center.py-5 p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.card-header {
    background-color: #fff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
}

.card-header h5 {
    font-weight: 600;
    color: #344767;
}

.card-header .search-box .input-group-text {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.card-header .search-box .form-control {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

@media (max-width: 768px) {
    .table-responsive {
        border-radius: 0.375rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem;
    }
    
    .table .btn-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table .btn-group .btn {
        margin-right: 0;
        margin-bottom: 0.25rem;
        width: 100%;
    }
    
    .table .btn-group .btn:last-child {
        margin-bottom: 0;
    }
}

/* Form Validation Styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Button Styles */
.btn {
    margin-right: 0.25rem;
}

.btn:last-child {
    margin-right: 0;
}

/* Card Improvements */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background-color: #fff;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    background-color: #fff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h5 {
    font-weight: 600;
    color: #344767;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.card-header h5 i {
    margin-right: 0.75rem;
    color: #0d6efd;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

.card-footer .btn {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.card-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Content List Styles */
.content-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.preview-button {
    margin-right: 5px;
}

.thumbnail-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Device Quota Styles */
.quota-progress {
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
    background-color: #f0f0f0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s ease;
}

.quota-progress:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), 0 3px 10px rgba(0,0,0,0.05);
}

.progress-bar {
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-image: none;
}

.progress-bar.bg-success {
    background-color: #28a745;
    background-image: none;
    box-shadow: none;
}

.progress-bar.bg-warning {
    background-color: #ffc107;
    background-image: none;
    box-shadow: none;
}

.progress-bar.bg-danger {
    background-color: #dc3545;
    background-image: none;
    box-shadow: none;
}

.quota-info {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.quota-card:hover .quota-info {
    transform: translateY(-2px);
}

.quota-info i {
    margin-right: 6px;
    transition: all 0.3s ease;
}

.quota-card:hover .quota-info i {
    transform: scale(1.2);
}

.quota-warning {
    color: #dc3545;
    font-weight: 600;
}

.quota-card {
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.quota-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.quota-card .card-header {
    background-color: #fff;
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quota-card .card-body {
    padding: 1.5rem;
}

.quota-card .card-title {
    font-weight: 600;
    color: #343a40;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.quota-card:hover .card-title {
    transform: translateX(5px);
}

.quota-card .card-title i {
    transition: all 0.3s ease;
    margin-right: 0.75rem;
}

.quota-card:hover .card-title i {
    transform: rotate(15deg);
}

.quota-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.quota-stats-item {
    text-align: center;
    padding: 0.8rem 0.5rem;
    flex: 1;
    border-radius: 8px;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.quota-stats-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.quota-stats-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    z-index: -1;
    transform: rotate(5deg);
    transition: all 0.3s ease;
}

.quota-stats-item:hover::before {
    transform: none;
}

.quota-stats-item.used {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

.quota-stats-item.total {
    background-color: rgba(13, 110, 253, 0.1);
    border-left: 3px solid #0d6efd;
}

.quota-stats-item.remaining {
    background-color: rgba(108, 117, 125, 0.1);
    border-left: 3px solid #6c757d;
}

.quota-stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.quota-stats-item:hover .quota-stats-value {
    transform: scale(1.1);
}

.quota-stats-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 10px;
    padding: 2px 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.quota-stats-item:hover .quota-stats-label {
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(2px);
}

.quota-stats-item.used:hover .quota-stats-label {
    background-color: rgba(40, 167, 69, 0.1);
    color: #6c757d;
}

.quota-stats-item.total:hover .quota-stats-label {
    background-color: rgba(13, 110, 253, 0.1);
    color: #6c757d;
}

.quota-stats-item.remaining:hover .quota-stats-label {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* Animate value changes with a flash */
.quota-flash {
    animation: flash 1s;
}

@keyframes flash {
    0% { background-color: rgba(255, 193, 7, 0.3); }
    100% { background-color: transparent; }
}

/* Custom orange color - keeping for backward compatibility */
.bg-orange {
    background-color: #ffc107 !important;
}

.text-orange {
    color: #ffc107 !important;
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Messages */
.alert {
    margin-bottom: 1rem;
    border: none;
    border-radius: 0.375rem;
    padding: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-left: 4px solid #842029;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid #664d03;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
    border-left: 4px solid #055160;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

/* Required Field Indicator */
.required {
    color: #dc3545;
    font-size: 0.8em;
    vertical-align: super;
}

/* Content Thumbnail */
.content-thumbnail {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.thumbnail-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.thumbnail-container i {
    font-size: 3rem;
    color: #6c757d;
}

/* Search Box */
.search-box {
    max-width: 300px;
}

/* Button Spacing */
.btn + .btn {
    margin-left: 0.5rem;
}

/* Form Improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* Role Badge Styles */
.role-badge {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* User Dropdown Styles */
.dropdown-item-form {
    padding: 0;
}

.dropdown-item-form button {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: #212529;
}

.dropdown-item-form button:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Navbar Styles */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

/* General Styles */
main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Tenant Selector Styles */
.tenant-selector-container {
    position: relative;
    min-width: 280px;
    isolation: isolate;
}

.tenant-select {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: #212529;
    background-color: #fff;
}

.tenant-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.select2-container--bootstrap-5 {
    z-index: 1060 !important;
}

.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 8px !important;
}

.select2-container--bootstrap-5 .select2-selection__arrow {
    height: 38px !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    background-color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.375rem !important;
    overflow: hidden;
    margin-top: 4px !important;
    animation: fadeIn 0.2s ease;
}

.select2-container--bootstrap-5 .select2-results {
    padding: 4px;
}

.select2-container--bootstrap-5 .select2-results__options {
    max-height: 250px !important;
    overflow-y: auto !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.5rem 1rem !important;
    margin-bottom: 2px !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #212529 !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.select2-container--bootstrap-5 .select2-results__group {
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    color: #6c757d !important;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 8px !important;
    color: #212529 !important;
}

/* Override dropdown position */
.tenant-selector-container .select2-container--bootstrap-5.select2-container--open .select2-dropdown {
    left: 0 !important;
}

/* Fix for dropdown display */
.dropdown-menu.show {
    display: block !important;
    pointer-events: auto !important;
}

/* Add a subtle pulse animation to the icons */
.quota-card i {
    display: inline-block;
}

.quota-card.active i {
    animation: none;
}

.tenant-select-dropdown {
    /* No special styles that break normal dropdown behavior */
}

.select2-container--open {
    /* No excessive z-index that causes issues */
}

/* Make sure dropdown follows normal Bootstrap behavior */
.dropdown-menu.show {
    /* No forced display or pointer-events */
}

body.select2-open .dropdown-menu.show {
    /* No forced behavior */
}

/* Tenant dropdown fixes to prevent accidental closing */
body.select2-open .dropdown-menu.show {
    pointer-events: auto !important;
}

/* Fix for dropdown button to prevent click events from closing the dropdown */
.user-dropdown-toggle.dropdown-toggle[aria-expanded="true"] {
    background-color: #f8f9fa;
}

/* Make dropdown items more robust to accidental clicks */
.dropdown-item-form {
    margin: 0;
    padding: 0;
}

/* Ensure tenant selector container handles events properly */
.tenant-selector-container {
    position: relative;
    min-width: 280px;
    isolation: isolate;
}

/* Ensure dropdown menu doesn't close unexpectedly */
.dropdown-menu.show {
    display: block !important;
    pointer-events: auto !important;
}

/* Tenant Dropdown Styles - clean and simple */
.tenant-dropdown-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
}

/* Select2 styling */
.select2-container {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    height: 38px !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
    background-color: #fff !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 8px 12px !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #333 !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: #0d6efd !important;
    color: #fff !important;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
    color: #333 !important;
    line-height: 36px !important;
}

/* Fix dropdown positioning */
.dropdown-menu {
    margin-top: 0.5rem;
}

/* Ensure select2 search works properly */
.select2-search__field:focus {
    outline: none;
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Fix dropdown item styles */
.dropdown-item-form {
    margin: 0;
    padding: 0;
}

@media (max-width: 576px) {
    .tenant-dropdown-wrapper {
        min-width: 250px; /* Ensure sufficient width on mobile */
    }
}

/* Remove these animations */
@keyframes fadeIn {
  /* No custom animations */
}

@keyframes fadeInDown {
  /* No custom animations */
}

/* Fix dropdown-menu behavior to restore standard Bootstrap behavior */
.dropdown-menu {
  margin-top: 0.5rem;
  /* No other changes to default behavior */
}

/* Properly style the dropdown without breaking its behavior */
.tenant-dropdown-wrapper {
  position: relative;
  width: 100%;
  padding: 0;
}

/* Clean up any remaining Select2 styles that might cause issues */
.select2-container {
  width: 100% !important;
  /* No excessive z-index */
}

/* Make sure there's no hardcoded display or auto-opening behavior */
body.select2-open .dropdown-menu.show {
  /* No custom styles */
}

/* Bootstrap dropdown styling */
.dropdown-menu {
  margin-top: 0.5rem;
}

/* Select2 styling */
.select2-container {
  width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
  height: 38px !important;
  border: 1px solid #dee2e6 !important;
  background-color: #fff !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
  border: 1px solid #dee2e6 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
  background-color: #fff !important;
}

.select2-container--bootstrap-5 .select2-results__option {
  padding: 8px 12px !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
  background-color: rgba(13, 110, 253, 0.1) !important;
  color: #333 !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
  background-color: #0d6efd !important;
  color: #fff !important;
}

.select2-container--bootstrap-5 .select2-selection__rendered {
  color: #333 !important;
  line-height: 36px !important;
}

/* Fix dropdown item styles */
.dropdown-item-form {
  margin: 0;
  padding: 0;
}

/* Tenant dropdown wrapper */
.tenant-dropdown-wrapper {
  position: relative;
  width: 100%;
}

/* Media queries */
@media (max-width: 576px) {
  .tenant-dropdown-wrapper {
    min-width: 250px; /* Ensure sufficient width on mobile */
  }
}

/* Custom Tenant Selector Styles */
.tenant-list {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

.tenant-item {
  padding: 8px 12px;
  border: none;
  background-color: transparent;
  transition: background-color 0.2s;
  white-space: normal;
  word-break: break-word;
  font-size: 0.9rem;
}

.tenant-item:hover, .tenant-item-hover {
  background-color: #f8f9fa;
}

.tenant-item.active {
  background-color: #e9f0ff;
  color: #0d6efd;
  font-weight: 500;
}

.tenant-group-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  padding-left: 4px;
}

.tenant-form {
  margin-bottom: 4px;
}

/* Ensure dropdown stays open when clicking inside */
.dropdown-menu {
  margin-top: 0.5rem;
}

/* Fix dropdown item styles */
.dropdown-item-form {
  margin: 0;
  padding: 0;
}

/* Tenant dropdown wrapper */
.tenant-selector-container {
  position: relative;
  width: 100%;
}

/* Media queries */
@media (max-width: 576px) {
  .tenant-selector-container {
    min-width: 250px;
  }
}

/* Additional Modern Table Enhancements */
.card .table {
    font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Add subtle animation to table rows */
.table-hover tbody tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Style for column headers */
.table th {
    position: relative;
    z-index: 1;
}

.table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #0d6efd;
    transition: width 0.2s ease;
}

.table th:hover::after {
    width: 100%;
}

/* Status indicators for tables */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    transition: all 0.2s ease-in-out;
}

.status-badge i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

.status-badge.status-active {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.status-inactive {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.status-badge.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-badge.status-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Empty state improvements */
.empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: #e9ecef;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.empty-state-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Parent Activity Card */
.parent-activity-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.parent-activity-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.parent-activity-card .card-body {
    padding: 1.5rem;
}

.parent-activity-card .activity-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.parent-activity-card .activity-card:hover {
    transform: translateY(-3px);
}

/* Login Page Styles */
/* Login page body styles */
body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}

/* Form container */
.form-signin {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    margin: auto;
}

/* Login card styling */
.login-card {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.login-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

/* Header section */
.login-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

/* Logo styling */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.login-logo-image {
    height: 320px;
    width: auto;
}

/* Form section */
.login-form {
    padding: 0 2rem 2rem;
}

/* Input field styling */
.login-form .input-group {
    margin-bottom: 1.25rem;
}

.login-form .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.login-form .form-control {
    border-left: none;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    padding-left: 0;
}

.login-form .input-group:focus-within .input-group-text,
.login-form .input-group:focus-within .form-control {
    border-color: #86b7fe;
}

.login-form .input-group i {
    color: #6c757d;
    width: 16px;
    text-align: center;
}

/* Login button styling */
.login-form .btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
}

/* Confirmation Modal Styles */
#confirmDeleteModal .modal-content {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

#confirmDeleteModal .modal-dialog {
    max-width: 450px;
    margin: 1.75rem auto;
    transition: transform 0.3s ease-out;
}

#confirmDeleteModal.show .modal-dialog {
    transform: translateY(0);
}

#confirmDeleteModal .modal-header .btn-close:focus {
    box-shadow: none;
    outline: none;
}

#confirmDeleteModal .modal-body .alert {
    border-radius: 0.5rem;
}

#confirmDeleteModal .btn {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

#confirmDeleteModal .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#confirmDeleteModal .btn-danger {
    background: linear-gradient(to right, #dc3545, #e35d6a);
    border: none;
}

#confirmDeleteModal .btn-danger:hover {
    background: linear-gradient(to right, #c82333, #dc3545);
}

#confirmDeleteModal .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #6c757d;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer .small {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-footer .text-danger {
    font-size: 0.9em;
}

/* Sidebar top logo area */
.sidebar-top {
    padding: 0.7rem 1.5rem 0.5rem;
}

.sidebar-logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-logo-icon {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.sidebar-logo-container:hover .sidebar-logo-icon {
    transform: scale(1.05);
}

/* Playlist content item styles */
.content-item {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
}

.content-item:hover {
    background-color: #f8f9fa;
}

.content-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.content-schedule {
    display: none;
}

.content-schedule.show {
    display: block;
}

/* For sortable content in playlists */
.handle {
    cursor: grab;
}

.handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.5;
    background-color: #f8f9fa;
}

/* Custom Colors */
.text-orange {
    color: #ffc107 !important;
}

/* Add a purple color option */
.text-purple {
    color: #6f42c1 !important;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}

.btn-purple:hover {
    background-color: #5e35b1;
    border-color: #5e35b1;
    color: #fff;
}

/* Add a maroon color option for documentation */
.text-maroon {
    color: #9a1750 !important;
}

.btn-maroon {
    background-color: #9a1750;
    border-color: #9a1750;
    color: #fff;
}

.btn-maroon:hover {
    background-color: #7d1342;
    border-color: #7d1342;
    color: #fff;
}

/* Simple validation styles */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.simple-validation .form-control.has-error {
    border-color: #dc3545;
}

/* Login Form Validation Styles */
.needs-validation-login .input-wrapper {
    position: relative;
    margin-bottom: 1.75rem;
}

.needs-validation-login .input-group {
    margin-bottom: 0;
}

.needs-validation-login .invalid-feedback {
    position: relative;
    top: 0;
    left: 0;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545 !important;
    align-items: center;
}

.needs-validation-login .invalid-feedback::before {
    content: "\f071";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.35rem;
    font-size: 0.8rem;
}

/* Button spacing in login form */
.needs-validation-login button[type="submit"] {
    margin-top: 0.75rem;
}

/* Utility Classes for Inline Styles */
.inline-form {
    display: inline;
}

.hidden {
    display: none !important;
}

.search-box {
    max-width: 300px;
}

.content-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.content-thumbnail-large {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.content-thumbnail-contain {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.quota-progress {
    height: 8px;
}

.checkbox-error {
    display: none;
}

.no-fields-message {
    display: none;
}

.queue-section {
    display: none;
}

.create-queue-btn {
    display: none;
}

.queueing-settings {
    display: none;
}

.content-schedule {
    display: none;
}

.invalid-feedback {
    display: none;
}

/* Logo dropdown specific styles */
.logo-option .dropdown-item {
    white-space: normal;
    padding: 12px 16px;
    color: #212529 !important; /* Ensure text is visible */
    background-color: transparent !important; /* Ensure background is proper */
    opacity: 1 !important; /* Ensure full opacity */
}

.logo-option .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.logo-option .dropdown-item img {
    flex-shrink: 0;
    opacity: 1 !important; /* Ensure images are visible */
}

/* Ensure dropdowns are visible but respect hierarchy */
.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    background-color: #ffffff !important; /* Ensure white background */
    opacity: 1 !important; /* Ensure dropdown is fully visible */
}

/* Logo dropdown - always show below, adapt card height */
#logoSearchInput ~ .dropdown-menu,
.dropdown:has(#logoSearchInput) .dropdown-menu {
    position: static !important; /* Keep it in document flow */
    width: 100% !important;
    transform: none !important;
    margin-top: 0 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #dee2e6 !important;
    border-top: none !important;
    border-radius: 0 0 0.375rem 0.375rem !important;
    max-height: 350px;
    overflow: visible;
    padding: 0;
}

/* Mobile responsive fixes for logo dropdown */
@media (max-width: 768px) {
    #logoSearchInput ~ .dropdown-menu,
    .dropdown:has(#logoSearchInput) .dropdown-menu {
        min-width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Ensure search input fits properly on mobile */
    #logoSearchInput ~ .dropdown-menu .form-control,
    .dropdown:has(#logoSearchInput) .dropdown-menu .form-control {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Adjust dropdown items for mobile */
    .logo-option .dropdown-item {
        padding: 8px 12px !important;
        font-size: 0.9rem !important;
    }
    
    /* Make thumbnails smaller on mobile */
    .logo-option .dropdown-item img,
    .logo-option .dropdown-item > div:first-child {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Fix search bar at top */
#logoSearchInput ~ .dropdown-menu > li:first-child,
.dropdown:has(#logoSearchInput) .dropdown-menu > li:first-child {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #dee2e6;
}

/* Make only the options scrollable - limit to 3 items */
#logoSearchInput ~ .dropdown-menu .options-scrollable,
.dropdown:has(#logoSearchInput) .dropdown-menu .options-scrollable {
    max-height: 240px; /* 3 items × 80px per item (padding + content) */
    overflow-y: auto;
}

/* Style the logo search input to match form controls */
#logoSearchInput {
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
    color: #495057 !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

#logoSearchInput:hover {
    border-color: #adb5bd !important;
}

#logoSearchInput:focus,
#logoSearchInput.show {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Style the input when dropdown is open */
#logoSearchInput.show,
#logoSearchInput[aria-expanded="true"] {
    border-radius: 0.375rem 0.375rem 0 0 !important;
    border-bottom-color: transparent !important;
    border-color: #86b7fe !important;
    position: relative;
}

/* Disable card hover transform when dropdown is open */
.card:has(.dropdown.show) {
    transform: none !important;
    transition: none !important;
}

.card:has(.dropdown.show):hover {
    transform: none !important;
}

/* Ensure search input in dropdown is visible */
#logoSearchInput ~ .dropdown-menu .form-control,
.dropdown:has(#logoSearchInput) .dropdown-menu .form-control {
    color: #212529 !important;
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    opacity: 1 !important;
}

/* Ensure all content within logo dropdown is visible */
#logoSearchInput ~ .dropdown-menu *,
.dropdown:has(#logoSearchInput) .dropdown-menu * {
    opacity: 1 !important;
    color: inherit !important;
}

/* Ensure parent containers don't hide dropdown */
.card, .input-group, .card-body, .container-fluid, .content-wrapper {
    overflow: visible !important;
}

/* Ensure the dropdown container itself has proper stacking */
.dropdown {
    position: relative;
}

/* Force all potential parent containers to be visible */
.card-body, .row, .col-md-6, .form-group {
    overflow: visible !important;
    position: relative;
    z-index: auto;
}

/* Fix any potential disabled/muted appearance */
.dropdown-menu:not(.show) {
    display: none;
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Override any potential Bootstrap disabled states */
.dropdown-menu .dropdown-item:not(.disabled):not(:disabled) {
    color: #212529 !important;
    background-color: transparent !important;
    opacity: 1 !important;
}

/* Ensure proper contrast and visibility */
.dropdown-menu .dropdown-item:not(.disabled):not(:disabled):hover,
.dropdown-menu .dropdown-item:not(.disabled):not(:disabled):focus {
    color: #1e2125 !important;
    background-color: #e9ecef !important;
}

/* Fix specific logo dropdown issues */
#logoSearchInput ~ .dropdown-menu .logo-option,
.dropdown:has(#logoSearchInput) .dropdown-menu .logo-option {
    opacity: 1 !important;
    visibility: visible !important;
}

#logoSearchInput ~ .dropdown-menu .logo-option .dropdown-item,
.dropdown:has(#logoSearchInput) .dropdown-menu .logo-option .dropdown-item {
    color: #212529 !important;
    opacity: 1 !important;
    visibility: visible !important;
}