@import "gcfr_custom_colorsheme.css";
@import "gcfr_custom_select2.css";

.cursor-pointer {
    cursor: pointer;
}

/* Layout Fixes */
.content-wrapper {
    min-height: calc(100vh - calc(3.5rem + 1px) - calc(3.5rem + 1px)) !important;
    padding-bottom: 60px;
}

.table td {
    vertical-align: middle;
}

body:not(.layout-fixed) .main-sidebar {
    position: fixed !important;
    top: 15px;
    bottom: 0;
    left: 0;
}

@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0 !important;
    }
}

/* Fixed Footer Styles */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Dark Mode Transitions */
.main-header,
.main-sidebar,
.content-wrapper,
.main-footer {
    transition: none !important;
}

body.dark-mode .main-footer {
    background: #343a40;
    border-top: 1px solid #4b545c;
}

table.table-sm tr {
    line-height: 1.5em !important;
    vertical-align: middle !important;
}

.text-center {
    text-align: center!important;
}

.text-md {
    font-size: 0.9rem!important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Sidebar Search Styles */
.sidebar-search-item {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

.sidebar-search-item .nav-link {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    display: none !important;
}

.sidebar-search-container {
    position: relative !important;
    width: 100%;
    padding: 10px 15px 10px 15px;
    margin-bottom: 10px;
}

.sidebar-search-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-search-input:focus {
    outline: none;
    border-color: rgba(116, 2, 1, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(116, 2, 1, 0.2);
}

.sidebar-search-results {
    position: absolute !important;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(52, 58, 64, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(116, 2, 1, 0.3) !important;
    border-radius: 6px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    display: none;
    color: white !important;
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    margin-top: 4px;
}

.sidebar-search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    background: transparent;
}

.sidebar-search-result-item:last-child {
    border-bottom: none;
}

.sidebar-search-result-item:hover {
    background: rgba(116, 2, 1, 0.2);
}

.sidebar-search-result-item .result-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.sidebar-search-result-item .result-rank {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-search-no-results {
    padding: 15px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Employee Modal Styles */
.employee-modal-container .swal2-popup {
    text-align: left;
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.employee-modal-container .swal2-html-container {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.employee-modal-container table {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.employee-modal-container .swal2-title {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.employee-modal-container .swal2-html-container {
    margin: 1rem 0;
}

.employee-modal-container .row {
    margin: 0;
}

.employee-modal-container .col-6 {
    padding: 0.25rem 0.5rem;
}

.employee-modal-container .col-12 {
    padding: 0.5rem;
}

.employee-modal-container h6 {
    margin-bottom: 0.5rem;
    color: #007bff;
    font-weight: 600;
}

.employee-modal-container .text-success {
    color: #28a745 !important;
}

.employee-modal-container .text-warning {
    color: #ffc107 !important;
}

.employee-modal-container .text-muted {
    color: #6c757d !important;
}

/* Fix für das User-Menü Layout */
.navbar-nav > .user-menu .nav-link {
    display: flex !important;
    align-items: center !important;
}

.navbar-nav > .user-menu .user-image {
    margin-right: 0.5rem !important;
    margin-top: 0 !important;
    height: 1.8rem !important;
    width: 1.8rem !important;
}

/* Fix für das Dropdown Layout */
.navbar-nav > .user-menu .user-header {
    text-align: center !important;
}

.navbar-nav > .user-menu .user-header img {
    float: none !important;
    margin: 0 auto !important;
    display: block !important;
}

.navbar-nav > .user-menu .user-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
}

.navbar-nav > .user-menu .user-footer .btn {
    width: auto !important;
}

.navbar-nav > .user-menu .user-footer .float-right {
    margin-left: auto !important;
}

/* Sidebar Icon Alignment Fix */
.nav-link i:first-child {
    width: 30px;
    text-align: center;
    display: inline-block;
}