html {
  font-size: 14px;
  background-color: #000000;
}

@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 #FA8800;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.custom-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 500px;
    height: 200px;
    background-color: #0d6efd; /* Bootstrap primary */
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 8px;
    font-size: 2rem;
    transition: background-color 0.3s;
}

.custom-button:hover {
    background-color: #0b5ed7;
}

.button-icon {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    object-fit: cover;
}

.button-text {
    flex-grow: 1;
    text-align: left;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* === Główne style przycisku === */
.custom-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 500px;
    height: 200px;
    color: white;
    text-decoration: none;
    padding: 20px;
    border-radius: 8px;
    font-size: 2rem;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.custom-button:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    color: black; /* <<< ZMIANA TEKSTU NA CZARNY */
}

.button-icon {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-button:hover .button-icon {
    transform: rotate(5deg) scale(1.1);
}

.button-text {
    flex-grow: 1;
    text-align: left;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.custom-button:hover .button-text {
    opacity: 0.95;
    transform: translateX(5px);
}

/* === Kolory indywidualne === */
.btn-projekty {
    background-color: #0d6efd; /* Niebieski */
}
.btn-projekty:hover {
    background-color: #0b5ed7;
}

.btn-czesci {
    background-color: #198754; /* Zielony */
}
.btn-czesci:hover {
    background-color: #157347;
}

.btn-kontakty {
    background-color: #dc3545; /* Czerwony */
}
.btn-kontakty:hover {
    background-color: #bb2d3b;
}

.btn-zamowienia {
    background-color: #fd7e14; /* Pomarańczowy */
}
.btn-zamowienia:hover {
    background-color: #e76c0e;
}

.btn-magazyn {
    background-color: #9e5b56; /* Pomarańczowy */
}
.btn-magazyn:hover {
    background-color: #b36560;
}

.btn-wydatki {
    background-color: #6c757d; /* Szary */
}
.btn-wydatki:hover {
    background-color: #5a6268;
}

.btn-kalkulacje {
    background-color: #409c48; /* Pomarańczowy */
}
.btn-kalkulacje:hover {
    background-color: #3aac43;
}

.btn-produkcja {
    background-color: #205157; /* Srebrny */
}
.btn-produkcja:hover {
    background-color: #205180;
}

.btn-materiallists {
    background-color: #0ea5e9;
}
.btn-materiallists:hover {
    background-color: #0284c7;
}

.btn-materialprices {
    background-color: #ca8a04;
}
.btn-materialprices:hover {
    background-color: #a16207;
}

.btn-oferty {
    background-color: #c184d6; /* Pomarańczowy */
}

.btn-oferty:hover {
    background-color: #c184d6;
}

.btn-dokumenty {
    background-color:#808080; /* Pomarańczowy */
}

    .btn-dokumenty:hover {
        background-color: #808080;
    }

.btn-stanowiska {
    background-color: #c184d6; /* Pomarańczowy */
}

    .btn-stanowiska:hover {
        background-color: #c184d6;
    }

.btn-users {
    background-color: #ff33bb; /* Pomarańczowy */
}

    .btn-users:hover {
        background-color: #ff33bb;
    }




/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */

#mainWrapper {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 72px);
}

#sidebar {
    width: 150px;
    min-width: 150px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 72px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s ease, min-width 0.25s ease;
    background-color: #111827;
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid #1f2937;
}

#sidebar.collapsed {
    width: 46px;
    min-width: 46px;
}

#mainContent {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Toggle button */
.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    padding: 6px 8px;
    cursor: pointer;
    align-self: flex-end;
    font-size: 1rem;
    line-height: 1;
    margin: 4px 2px 2px 2px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.sidebar-toggle-btn:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
}

.sidebar-toggle-btn i {
    transition: transform 0.25s ease;
    display: block;
}

#sidebar.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

/* Sidebar item list */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 4px 8px 4px;
    flex: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 7px 8px;
    color: white !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    transition: filter 0.2s;
    min-height: 38px;
}

.sidebar-item:hover {
    filter: brightness(1.3);
    color: white !important;
}

.sidebar-item.sidebar-active {
    filter: brightness(1.25);
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.55);
}

/* Icon inside sidebar item */
.sidebar-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    object-fit: cover;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Text label - hides on collapse */
.sidebar-text {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    transition: max-width 0.25s ease, opacity 0.2s ease;
}

#sidebar.collapsed .sidebar-text {
    max-width: 0;
    opacity: 0;
}

#sidebar.collapsed .sidebar-icon {
    margin-right: 0;
}

#sidebar.collapsed .sidebar-item {
    padding: 7px 4px;
    justify-content: center;
}

/* Scrollbar */
#sidebar::-webkit-scrollbar { width: 3px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: #374151; border-radius: 2px; }

/* Color for Wycenione - missing from original CSS */
.btn-wycenione {
    background-color: #0891b2;
}
.btn-wycenione:hover {
    background-color: #0e7490;
}
