/* Dodatkowe poprawki dla wyglądu */

/* Zaokrąglone pole wyszukiwania */
.search-input {
    border-radius: 0.5rem !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding: 0.75rem 1rem !important;
    transition: background-color 0.2s ease !important;
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: none !important;
}

.dark-theme .search-input {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.dark-theme .search-input:focus {
    background-color: rgba(0, 0, 0, 0.3) !important;
    box-shadow: none !important;
}

/* Poprawki dla przycisków zamknięcia mandatu */
.ticket-header .close-ticket {
    display: none !important; /* Ukryj górny przycisk */
}

/* Style dla przycisku zamknięcia */
.action-btn.primary#close-ticket-btn {
    background-color: #D2B48C !important; /* Kolor tan/coyote dla szeryfa */
    color: white !important;
    border: none !important;
    padding: 1rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-align: center !important;
    font-size: 1rem !important;
}

.action-btn.primary#close-ticket-btn:hover {
    background-color: #BC9A6A !important;
}

/* Poprawki dla wyszukiwarki */
.search-bar {
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-theme .search-bar {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Mniejsza szerokość kontenera na PC dla lepszej czytelności */
@media (min-width: 768px) {
    .main-content {
        width: 90% !important;
        max-width: 1100px !important;
    }
}

/* Przycisk powrotu na górę strony */
.back-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    background-color: #D2B48C !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: none !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
    transition: background-color 0.2s, transform 0.2s !important;
}

.back-to-top:hover {
    background-color: #BC9A6A !important;
    transform: translateY(-3px) !important;
}

.back-to-top.visible {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dark-theme .back-to-top {
    background-color: #D2B48C !important;
}

.dark-theme .back-to-top:hover {
    background-color: #BC9A6A !important;
}
