/* Ulepszony DARK MODE */

body.dark-mode, .dark-mode .bg-white {
    background: #121212 !important;
    color: #e0e0e0;
}

/* Nagłówki */
.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: #FFF !important;
    text-shadow: 1px 1px 8px rgba(255, 255, 255, 0.1);
}

/* Nagłówek i stopka */
.dark-mode header {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid #3d3d3d;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}
.dark-mode footer {
    background: #0d0d0d;
    border-top: 1px solid #2e2e2e;
}
.dark-mode footer ul li, .dark-mode footer ul li a, .dark-mode footer p {
    color: #bdbdbd;
}
.dark-mode footer ul li:hover, .dark-mode footer ul li a:hover {
    color: #FFF;
}

/* Karty i panele */
.dark-mode .card-ai {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease-in-out;
}
.dark-mode .card-ai:hover {
    box-shadow: 0px 6px 16px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}
.dark-mode .card-ai-name h3 {
    color: #FFF;
}

/* Styl ikon kategorii */
.dark-mode .wrapper-category-item {
    background: linear-gradient(135deg, #1b1b1b, #222);
    border: 1px solid #2f2f2f;
    border-bottom: 5px solid #181818;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}
.dark-mode .wrapper-category-item:hover {
    background: linear-gradient(135deg, #292929, #333);
    box-shadow: 3px 3px 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}
.dark-mode .wrapper-category-item img {
    filter: brightness(95%) contrast(110%);
    opacity: 0.9;
    transition: opacity 0.3s ease-in-out;
}
.dark-mode .wrapper-category-item img:hover {
    opacity: 1;
}
.dark-mode .wrapper-category-item span {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kategorie */
.dark-mode .category-card {
    background: linear-gradient(135deg, #181818, #252525);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease-in-out;
}
.dark-mode .category-card:hover {
    background: linear-gradient(135deg, #252525, #383838);
    box-shadow: 0 6px 14px rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}
.dark-mode .category-card h3 {
    color: #FFF;
    font-size: 1.4rem;
    font-weight: bold;
}
.dark-mode .category-card .icon {
    font-size: 2rem;
    color: #ffffff;
    opacity: 0.85;
    transition: opacity 0.3s ease-in-out;
}
.dark-mode .category-card:hover .icon {
    opacity: 1;
}

/* Przewijanie */
.dark-mode .ai-contacts-scroll {
    background: #1a1a1a;
}
.dark-mode .ai-contacts-scroll::-webkit-scrollbar {
    width: 6px;
    background: #282828;
}
.dark-mode #overflow-chat::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 5px;
}

/* Menu i przyciski */
.dark-mode .dropdown-menu.show {
    background: #3d3d3f;
    border-radius: 5px;
}
.dark-mode .dropdown-item {
    color: #FFF;
}
.dark-mode .dropdown-item:hover {
    background: #474747;
    color: #FFF;
}
.dark-mode .chat-action-buttons {
    background: #444;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}
.dark-mode .chat-action-buttons:hover {
    background: #555;
}
.dark-mode .chat-action-buttons i {
    color: #FFF;
}

/* Tekst i formularze */
.dark-mode .form-floating>.form-select {
    border: 1px solid #555;
    background: #262626;
    color: #FFF;
}
.dark-mode .form-floating>label {
    color: #b0b0b0;
}
.dark-mode .chat-input textarea, .dark-mode .chat-input input {
    border: 1px solid #626263;
    background: #262626;
    color: #FFF;
}
.dark-mode .copy-text, .dark-mode .copy-text:hover {
    color: #FFF;
}
.dark-mode .message-container::before {
    left: -11px;
    border-right: 10px solid #333;
}

/* Modale */
.dark-mode .modal-content {
    background: #333;
    border-radius: 8px;
}
.dark-mode .btn-close, .dark-mode .modal-content {
    color: #FFF;
}
.dark-mode .modal-header {
    border-bottom: 1px solid #666;
}
.dark-mode .modal-footer {
    border-top: 1px solid #666;
}

/* Pozostałe */
.dark-mode .wrapper-vip-message {
    background: #1e1e1e;
    box-shadow: none;
}
.dark-mode .wrapper-vip-credit-pack {
    background: #2d2d2d;
    border: 1px solid #444;
    border-bottom: 5px solid #333;
    border-radius: 8px;
}
.dark-mode .wrapper-vip-credit-pack:hover {
    box-shadow: 3px 3px 12px rgba(255, 255, 255, 0.15);
}
.dark-mode ul, .dark-mode ol, .dark-mode li {
    color: #FFF;
}
.dark-mode .color-blue {
    color: #7ac7ff;
}
.dark-mode hr {
    color: #676767;
}
