/* ============================================
   STYL MODUŁU FIRMY - GAMINGOWY/TRANSPORTOWY
   ============================================ */

/* Zmienne kolorów - motyw transportowy (DOMYŚLNE) */
:root {
    --firma-bg-dark: #1a1f2e;
    --firma-bg-card: #232936;
    --firma-bg-card-hover: #2a313d;
    --firma-accent-orange: #ff6b35;
    --firma-accent-yellow: #ffd93d;
    --firma-accent-red: #e63946;
    --firma-accent-green: #2ecc71;
    --firma-accent-blue: #3498db;
    --firma-text-primary: #ffffff;
    --firma-text-secondary: #a0aec0;
    --firma-border: #3a4556;
    --firma-gradient-orange: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --firma-gradient-dark: linear-gradient(135deg, #1a1f2e 0%, #2d3548 100%);
    --firma-gradient-metallic: linear-gradient(145deg, #3a4556 0%, #2a313d 50%, #3a4556 100%);
}

/* Dynamiczne kolory brandingu firmy (nadpisane przez JavaScript) */
:root {
    --firma-kolor-glowny: #0d6efd;
    --firma-kolor-akcent: #6610f2;
    --firma-kolor-dodatkowy-1: #ff6b35;
    --firma-kolor-dodatkowy-2: #ffd93d;
    --firma-font: 'Inter', sans-serif;
    --firma-radius: 12px;
}

/* ============================================
   STYLE DLA KLAS BOOTSTRAP W PANELU FIRMY
   ============================================ */

/* Wymuś ciemny motyw na elementach Bootstrap */
.firma-panel .form-control,
.firma-panel .form-select,
.firma-panel .form-text,
.firma-panel .form-label,
.firma-panel textarea,
.firma-panel input[type="text"],
.firma-panel input[type="url"],
.firma-panel input[type="email"],
.firma-panel input[type="password"],
.firma-panel input[type="number"],
.firma-panel input[type="search"],
.firma-panel select,
.firma-panel .input-group-text,
.firma-panel .form-control:focus,
.firma-panel .form-select:focus {
    color: var(--firma-text-primary, #fff) !important;
    background-color: var(--firma-bg-card, #232936) !important;
    border-color: var(--firma-border, #3a4556) !important;
}

/* Placeholder */
.firma-panel .form-control::placeholder,
.firma-panel textarea::placeholder {
    color: var(--firma-text-secondary, #a0aec0) !important;
    opacity: 0.7;
}

/* Focus states */
.firma-panel .form-control:focus,
.firma-panel .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25) !important;
    border-color: var(--firma-accent-orange, #ff6b35) !important;
}

/* Input group text */
.firma-panel .input-group-text {
    color: var(--firma-text-secondary, #a0aec0) !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-color: var(--firma-border, #3a4556) !important;
}

/* Przyciski */
.firma-panel .btn,
.firma-panel .btn-primary,
.firma-panel .btn-secondary,
.firma-panel .btn-success,
.firma-panel .btn-danger,
.firma-panel .btn-outline-primary,
.firma-panel .btn-outline-secondary,
.firma-panel .btn-outline-success,
.firma-panel .btn-outline-danger {
    color: var(--firma-text-primary, #fff) !important;
    border-color: var(--firma-border, #3a4556) !important;
}

.firma-panel .btn-primary {
    background-color: var(--firma-accent-orange, #ff6b35) !important;
    border-color: var(--firma-accent-orange, #ff6b35) !important;
}

.firma-panel .btn-primary:hover {
    background-color: var(--firma-kolor-akcent, #6610f2) !important;
    border-color: var(--firma-kolor-akcent, #6610f2) !important;
}

.firma-panel .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Przycisk close w modalu */
.firma-panel .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Modal */
.firma-panel .modal-header {
    border-bottom-color: var(--firma-border, #3a4556) !important;
}

.firma-panel .modal-footer {
    border-top-color: var(--firma-border, #3a4556) !important;
}

/* Horizontal rule */
.firma-panel hr {
    border-color: var(--firma-border, #3a4556) !important;
}

/* Text muted */
.firma-panel .text-muted {
    color: var(--firma-text-secondary, #a0aec0) !important;
}

.firma-panel .form-text {
    color: var(--firma-text-secondary, #a0aec0) !important;
    font-size: 0.85rem;
}

/* Dropdown menu */
.firma-panel .dropdown-menu {
    background-color: var(--firma-bg-card, #232936) !important;
    border-color: var(--firma-border, #3a4556) !important;
}

.firma-panel .dropdown-item {
    color: var(--firma-text-primary, #fff) !important;
}

.firma-panel .dropdown-item:hover,
.firma-panel .dropdown-item:focus {
    background-color: rgba(255, 107, 53, 0.2) !important;
    color: var(--firma-accent-orange, #ff6b35) !important;
}

.firma-panel .dropdown-divider {
    border-color: var(--firma-border, #3a4556) !important;
}

/* Naprawa select pickerów - dodanie strzałki */
.firma-panel .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233a4556' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Naprawa color input */
.firma-panel input[type="color"] {
    padding: 4px;
    height: auto;
}

/* ============================================
   SAVE BAR - pasek z przyciskami
   ============================================ */
.firma-panel .savebar,
.firma-panel .savebar.bg-body,
.firma-settings-panel .savebar,
.firma-settings-panel .savebar.bg-body {
    background-color: var(--firma-bg-dark, #1a1f2e) !important;
    border-top-color: var(--firma-border, #3a4556) !important;
}

.firma-panel .savebar .btn-outline-secondary,
.firma-settings-panel .savebar .btn-outline-secondary {
    color: var(--firma-text-primary, #fff) !important;
    border-color: var(--firma-border, #3a4556) !important;
    background-color: transparent !important;
}

.firma-panel .savebar .btn-outline-secondary:hover,
.firma-settings-panel .savebar .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--firma-text-primary, #fff) !important;
    color: var(--firma-text-primary, #fff) !important;
}

/* ============================================
   KARTY BOOTSTRAP W CIEMNYM MOTYWIE
   ============================================ */
.firma-settings-panel .card,
.firma-settings-panel .card-body,
.firma-settings-panel .card-header,
.firma-settings-panel .card-footer {
    background-color: var(--firma-bg-card, #232936) !important;
    border-color: var(--firma-border, #3a4556) !important;
    color: var(--firma-text-primary, #fff) !important;
}

.firma-settings-panel .card-header h5,
.firma-settings-panel .card-header .mb-0 {
    color: var(--firma-text-primary, #fff) !important;
}

.firma-settings-panel .card-header.bg-body {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.firma-settings-panel .text-muted {
    color: var(--firma-text-secondary, #a0aec0) !important;
}

/* ============================================
   STYLE DLA KLAS .firma-* (oryginalne)
   ============================================ */

/* Gradienty dynamiczne na podstawie kolorów brandingu */
.firma-gradient-brand {
    background: linear-gradient(135deg, var(--firma-kolor-glowny) 0%, var(--firma-kolor-akcent) 100%);
}

.firma-gradient-dodatkowy-1 {
    background: var(--firma-kolor-dodatkowy-1);
}

.firma-gradient-dodatkowy-2 {
    background: var(--firma-kolor-dodatkowy-2);
}

/* Dynamiczne style dla elementów brandingu */
.firma-btn-dynamic {
    background: var(--firma-kolor-dodatkowy-1);
    color: white;
    border: none;
    border-radius: var(--firma-radius);
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.firma-btn-dynamic:hover {
    background: var(--firma-kolor-akcent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.firma-badge-dynamic {
    background: var(--firma-kolor-dodatkowy-2);
    color: #1a1f2e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.firma-border-left-dynamic {
    border-left: 4px solid var(--firma-kolor-dodatkowy-1);
}

.firma-text-dynamic {
    color: var(--firma-kolor-glowny);
}

.firma-text-dynamic-2 {
    color: var(--firma-kolor-dodatkowy-1);
}

.firma-text-dynamic-3 {
    color: var(--firma-kolor-dodatkowy-2);
}

/* Kontener główny panelu firmy */
.firma-panel {
    background: var(--firma-bg-dark);
    min-height: 100vh;
    color: var(--firma-text-primary);
}

/* ============================================
   HEADER FIRMY - Styl transportowy
   ============================================ */
.firma-header {
    background: var(--firma-gradient-dark);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.firma-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--firma-gradient-orange);
}

.firma-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.firma-logo-container {
    position: relative;
}

.firma-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--firma-accent-orange);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.firma-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

.firma-tag {
    display: inline-block;
    background: var(--firma-gradient-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 8px;
}

.firma-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--firma-text-primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.firma-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--firma-text-secondary);
    font-size: 0.9rem;
}

.firma-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.firma-meta-item i {
    color: var(--firma-accent-orange);
}

/* ============================================
   KARTY STATYSTYK (KPI)
   ============================================ */
.firma-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.firma-stat-card {
    background: var(--firma-gradient-metallic);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--firma-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.firma-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.firma-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.firma-stat-card.stat-money::before {
    background: var(--firma-accent-green);
}

.firma-stat-card.stat-employees::before {
    background: var(--firma-accent-blue);
}

.firma-stat-card.stat-garages::before {
    background: var(--firma-accent-orange);
}

.firma-stat-card.stat-applications::before {
    background: var(--firma-accent-yellow);
}

.firma-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.stat-money .firma-stat-icon {
    background: rgba(46, 204, 113, 0.2);
    color: var(--firma-accent-green);
}

.stat-employees .firma-stat-icon {
    background: rgba(52, 152, 219, 0.2);
    color: var(--firma-accent-blue);
}

.stat-garages .firma-stat-icon {
    background: rgba(255, 107, 53, 0.2);
    color: var(--firma-accent-orange);
}

.stat-applications .firma-stat-icon {
    background: rgba(255, 217, 61, 0.2);
    color: var(--firma-accent-yellow);
}

.firma-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--firma-text-primary);
    margin-bottom: 4px;
}

.firma-stat-label {
    font-size: 0.85rem;
    color: var(--firma-text-secondary);
}

/* ============================================
   ZAKŁADKI (TABS) - Styl transportowy
   ============================================ */
.firma-tabs-container {
    background: var(--firma-gradient-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.firma-tabs-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--firma-border);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--firma-accent-orange) var(--firma-bg-dark);
}

.firma-tabs-nav {
    display: flex;
    gap: 4px;
    padding: 8px;
    min-width: max-content;
}

.firma-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--firma-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.firma-tab-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--firma-text-primary);
}

.firma-tab-btn.active {
    background: var(--firma-gradient-orange);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.firma-tab-btn i {
    font-size: 1.1rem;
}

.firma-tab-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.firma-tab-btn.active .firma-tab-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   ZAWARTOŚĆ ZAKŁADEK
   ============================================ */
.firma-tab-content {
    padding: 24px;
}

.firma-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.firma-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   KARTY OGŁOSZEŃ
   ============================================ */
.firma-announcement-card {
    background: var(--firma-bg-card);
    border-radius: 12px;
    border: 1px solid var(--firma-border);
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.firma-announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.firma-announcement-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.firma-announcement-title {
    font-weight: 600;
    color: var(--firma-text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.firma-announcement-meta {
    font-size: 0.85rem;
    color: var(--firma-text-secondary);
}

.firma-announcement-body {
    padding: 20px;
}

.firma-announcement-content {
    color: var(--firma-text-secondary);
    line-height: 1.7;
}

/* ============================================
   TABELE PRACOWNIKÓW
   ============================================ */
.firma-employee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.firma-employee-table th {
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--firma-text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.firma-employee-table th:first-child {
    border-radius: 12px 0 0 12px;
}

.firma-employee-table th:last-child {
    border-radius: 0 12px 12px 0;
}

.firma-employee-table td {
    padding: 16px;
    background: var(--firma-bg-card);
    color: var(--firma-text-primary);
}

.firma-employee-table td:first-child {
    border-radius: 12px 0 0 12px;
}

.firma-employee-table td:last-child {
    border-radius: 0 12px 12px 0;
}

.firma-employee-row:hover td {
    background: var(--firma-bg-card-hover);
}

.firma-employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--firma-accent-orange);
}

.firma-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-owner { background: var(--firma-gradient-orange); }
.role-manager { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.role-dispatcher { background: linear-gradient(135deg, #3498db, #2980b9); }
.role-driver { background: linear-gradient(135deg, #2ecc71, #27ae60); }

/* ============================================
   KARTY GARAŻY
   ============================================ */
.firma-garage-card {
    background: var(--firma-gradient-metallic);
    border-radius: 16px;
    border: 1px solid var(--firma-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.firma-garage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.firma-garage-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.firma-garage-location {
    display: flex;
    align-items: center;
    gap: 12px;
}

.firma-garage-location i {
    font-size: 1.5rem;
    color: var(--firma-accent-orange);
}

.firma-garage-level {
    background: var(--firma-gradient-orange);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.firma-garage-body {
    padding: 20px;
}

.firma-garage-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.firma-garage-stat {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.firma-garage-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--firma-text-primary);
}

.firma-garage-stat-label {
    font-size: 0.75rem;
    color: var(--firma-text-secondary);
}

/* ============================================
   TRANSAKCJE FINANSOWE
   ============================================ */
.firma-transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--firma-bg-card);
    border-radius: 12px;
    margin-bottom: 8px;
    border-left: 4px solid var(--firma-border);
    transition: transform 0.2s ease;
}

.firma-transaction-item:hover {
    transform: translateX(4px);
}

.firma-transaction-item.income {
    border-left-color: var(--firma-accent-green);
}

.firma-transaction-item.expense {
    border-left-color: var(--firma-accent-red);
}

.firma-transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.firma-transaction-item.income .firma-transaction-icon {
    background: rgba(46, 204, 113, 0.2);
    color: var(--firma-accent-green);
}

.firma-transaction-item.expense .firma-transaction-icon {
    background: rgba(230, 57, 70, 0.2);
    color: var(--firma-accent-red);
}

.firma-transaction-details {
    flex: 1;
}

.firma-transaction-title {
    font-weight: 600;
    color: var(--firma-text-primary);
    margin-bottom: 4px;
}

.firma-transaction-date {
    font-size: 0.85rem;
    color: var(--firma-text-secondary);
}

.firma-transaction-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.firma-transaction-item.income .firma-transaction-amount {
    color: var(--firma-accent-green);
}

.firma-transaction-item.expense .firma-transaction-amount {
    color: var(--firma-accent-red);
}

/* ============================================
   PRZYCISKI
   ============================================ */
.firma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.firma-btn-primary {
    background: var(--firma-gradient-orange);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.firma-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.firma-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--firma-text-primary);
    border: 1px solid var(--firma-border);
}

.firma-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.firma-btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

.firma-btn-danger {
    background: linear-gradient(135deg, #e63946 0%, #c0392b 100%);
    color: white;
}

/* ============================================
   MODALE
   ============================================ */
.firma-modal .modal-content {
    background: var(--firma-bg-dark);
    border-radius: 16px;
    border: 1px solid var(--firma-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.firma-modal .modal-header {
    border-bottom: 1px solid var(--firma-border);
    padding: 20px 24px;
}

.firma-modal .modal-title {
    color: var(--firma-text-primary);
    font-weight: 700;
}

.firma-modal .btn-close {
    filter: invert(1);
}

.firma-modal .modal-body {
    padding: 24px;
}

.firma-modal .modal-footer {
    border-top: 1px solid var(--firma-border);
    padding: 16px 24px;
}

/* ============================================
   FORMUARZE
   ============================================ */
.firma-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--firma-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.firma-form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--firma-border);
    border-radius: 8px;
    color: var(--firma-text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.firma-form-control:focus {
    outline: none;
    border-color: var(--firma-accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.firma-form-control::placeholder {
    color: var(--firma-text-secondary);
}

.firma-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

/* ============================================
   STAN PUSTY (EMPTY STATE)
   ============================================ */
.firma-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--firma-text-secondary);
}

.firma-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.firma-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--firma-text-primary);
    margin-bottom: 8px;
}

.firma-empty-text {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* ============================================
   LISTA FIRM (widok lista.php)
   ============================================ */
.firma-list-card {
    background: var(--firma-gradient-metallic);
    border-radius: 16px;
    border: 1px solid var(--firma-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.firma-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.firma-list-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--firma-border);
}

.firma-list-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--firma-accent-orange);
    margin-bottom: 16px;
}

.firma-list-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--firma-text-primary);
    margin-bottom: 4px;
}

.firma-list-tag {
    background: rgba(255, 107, 53, 0.2);
    color: var(--firma-accent-orange);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.firma-list-body {
    padding: 20px;
    flex: 1;
}

.firma-list-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 16px;
}

.firma-list-stat {
    text-align: center;
}

.firma-list-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--firma-text-primary);
}

.firma-list-stat-label {
    font-size: 0.75rem;
    color: var(--firma-text-secondary);
}

.firma-list-motto {
    font-style: italic;
    color: var(--firma-text-secondary);
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 16px;
}

.firma-list-footer {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--firma-border);
}

/* ============================================
   RESPONSYWNOŚĆ
   ============================================ */
@media (max-width: 768px) {
    .firma-header {
        padding: 16px;
    }
    
    .firma-logo {
        width: 80px;
        height: 80px;
    }
    
    .firma-title {
        font-size: 1.35rem;
    }
    
    .firma-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .firma-tab-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .firma-tab-btn i {
        font-size: 1rem;
    }
    
    .firma-tab-content {
        padding: 16px;
    }
    
    .firma-garage-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .firma-stats-row {
        grid-template-columns: 1fr;
    }
    
    .firma-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .firma-tabs-nav {
        gap: 2px;
    }
    
    .firma-tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ============================================
   ANIMACJE
   ============================================ */
@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
}

.firma-pulse {
    animation: pulse-orange 2s infinite;
}

@keyframes slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.firma-slide-up {
    animation: slide-up 0.5s ease forwards;
}

/* ============================================
   SCROLLBAR
   ============================================ */
.firma-panel ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.firma-panel ::-webkit-scrollbar-track {
    background: var(--firma-bg-dark);
}

.firma-panel ::-webkit-scrollbar-thumb {
    background: var(--firma-border);
    border-radius: 4px;
}

.firma-panel ::-webkit-scrollbar-thumb:hover {
    background: var(--firma-accent-orange);
}

/* ============================================
   COVER IMAGE
   ============================================ */
.firma-cover-container {
    position: relative;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.firma-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.firma-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* ============================================
   IKONY SOCIAL MEDIA
   ============================================ */
.firma-social-links {
    display: flex;
    gap: 8px;
}

.firma-social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--firma-text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.firma-social-link:hover {
    background: var(--firma-accent-orange);
    color: white;
    transform: translateY(-2px);
}

/* Discord specific */
.firma-social-link.discord:hover {
    background: #5865F2;
}

/* Facebook specific */
.firma-social-link.facebook:hover {
    background: #1877F2;
}

/* YouTube specific */
.firma-social-link.youtube:hover {
    background: #FF0000;
}

/* Instagram specific */
.firma-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* ============================================
   PAGINACJA
   ============================================ */
.firma-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.firma-pagination .page-link {
    background: var(--firma-bg-card);
    border: 1px solid var(--firma-border);
    color: var(--firma-text-secondary);
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.firma-pagination .page-link:hover {
    background: var(--firma-accent-orange);
    border-color: var(--firma-accent-orange);
    color: white;
}

.firma-pagination .page-item.active .page-link {
    background: var(--firma-gradient-orange);
    border-color: var(--firma-accent-orange);
    color: white;
}

.firma-pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: transparent;
    color: var(--firma-text-secondary);
    opacity: 0.5;
}

/* ============================================
   KARTY GARAŻÓW - NOWY DESIGN
   ============================================ */
.garaz-card {
    background: var(--firma-bg-card);
    border: 1px solid var(--firma-border);
    border-radius: var(--firma-radius, 12px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.garaz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.garaz-card-header {
    background: linear-gradient(135deg, var(--firma-accent-orange) 0%, #f7931e 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.garaz-card-header .garaz-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.garaz-card-header .garaz-title i {
    font-size: 1.3rem;
}

.garaz-level-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.garaz-card-body {
    padding: 20px;
    flex: 1;
}

/* Sekcja pojemności */
.garaz-capacity-section {
    margin-bottom: 20px;
}

.garaz-capacity-title {
    font-size: 0.85rem;
    color: var(--firma-text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.garaz-capacity-title i {
    color: var(--firma-accent-orange);
}

.garaz-capacity-item {
    margin-bottom: 12px;
}

.garaz-capacity-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--firma-text-secondary);
    margin-bottom: 6px;
}

.garaz-capacity-label strong {
    color: var(--firma-text-primary);
}

.garaz-progress {
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.garaz-progress .progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.garaz-progress .progress-bar.bg-primary {
    background: linear-gradient(90deg, var(--firma-accent-orange), #f7931e);
}

.garaz-progress .progress-bar.bg-info {
    background: linear-gradient(90deg, var(--firma-accent-blue), #2980b9);
}

/* Koszt utrzymania */
.garaz-maintenance {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.garaz-maintenance-label {
    font-size: 0.8rem;
    color: var(--firma-text-secondary);
    margin-bottom: 4px;
}

.garaz-maintenance-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--firma-accent-orange);
}

/* Lista zestawów */
.garaz-zestawy-section {
    margin-top: 16px;
}

.garaz-zestawy-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--firma-text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.garaz-zestawy-title i {
    color: var(--firma-accent-orange);
}

.zestaw-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.zestaw-item:hover {
    background: rgba(0, 0, 0, 0.3);
}

.zestaw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.zestaw-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zestaw-img {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--firma-border);
}

.zestaw-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--firma-text-primary);
}

.zestaw-plate {
    font-size: 0.75rem;
    color: var(--firma-text-secondary);
    font-family: monospace;
}

.zestaw-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}

.zestaw-status.assigned {
    color: var(--firma-accent-green);
}

.zestaw-status.unassigned {
    color: var(--firma-text-secondary);
}

/* ============================================
   NOWY UKŁAD POZIOMY ZESTAWÓW W GARAŻU
   ============================================ */
.zestawy-list-horizontal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zestaw-row-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    transition: all 0.2s ease;
}

.zestaw-row-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 53, 0.3);
}

.zestaw-vehicle-box,
.zestaw-trailer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.zestaw-trailer-box {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.zestaw-img-small {
    width: 64px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--firma-border);
    margin-bottom: 6px;
    transition: transform 0.2s ease;
}

.zestaw-row-item:hover .zestaw-img-small {
    transform: scale(1.05);
}

.zestaw-vehicle-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--firma-text-primary);
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zestaw-plate-small {
    font-size: 0.7rem;
    color: var(--firma-text-secondary);
    font-family: monospace;
    margin-top: 2px;
}

.zestaw-connector {
    color: var(--firma-accent-orange);
    font-size: 1.5rem;
    animation: pulse-connector 2s infinite;
}

@keyframes pulse-connector {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.zestaw-driver-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    min-width: 90px;
}

.zestaw-driver-status.status-assigned {
    background: rgba(46, 204, 113, 0.2);
    color: var(--firma-accent-green);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.zestaw-driver-status.status-unassigned {
    background: rgba(160, 174, 192, 0.2);
    color: var(--firma-text-secondary);
    border: 1px solid rgba(160, 174, 192, 0.2);
}

.zestaw-actions-mini {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.zestaw-actions-mini .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* ============================================
   MODERN LISTA GARAŻY - NOWY DESIGN
   ============================================ */
.garaze-modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.garaze-modern-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.garaze-icon-wrapper {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--firma-accent-orange) 0%, #f7931e 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.garaze-modern-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--firma-text-primary);
    margin: 0;
}

.garaze-subtitle {
    font-size: 0.875rem;
    color: var(--firma-text-secondary);
}

.garaze-modern-actions {
    display: flex;
    gap: 12px;
}

.garaze-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.garaze-btn-primary {
    background: linear-gradient(135deg, var(--firma-accent-orange) 0%, #f7931e 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.garaze-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.garaze-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--firma-text-primary);
    border: 1px solid var(--firma-border);
}

.garaze-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--firma-accent-orange);
}

/* Pusta lista */
.garaze-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    border: 2px dashed rgba(255, 107, 53, 0.3);
}

.garaze-empty-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    color: var(--firma-text-secondary);
    opacity: 0.5;
}

.garaze-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--firma-text-primary);
    margin-bottom: 8px;
}

.garaze-empty-text {
    font-size: 0.95rem;
    color: var(--firma-text-secondary);
    margin-bottom: 20px;
}

/* Grid garaży */
.garaze-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* Karta garażu modern */
.garaze-modern-card {
    background: var(--firma-bg-card);
    border: 1px solid var(--firma-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.garaze-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--firma-accent-orange), #f7931e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.garaze-modern-card:hover::before {
    opacity: 1;
}

.garaze-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--card-glow, rgba(255, 107, 53, 0.2));
}

.garaze-card-level {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.level-number {
    font-size: 1.25rem;
    font-weight: 700;
}

.level-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.garaze-card-location {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.location-flag {
    font-size: 1.5rem;
}

.location-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--firma-text-primary);
}

/* Statystyki */
.garaze-card-stats {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-icon.trucks {
    background: rgba(255, 107, 53, 0.2);
    color: var(--firma-accent-orange);
}

.stat-icon.trailers {
    background: rgba(52, 152, 219, 0.2);
    color: var(--firma-accent-blue);
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--firma-text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--firma-text-secondary);
}

.stat-bar {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-bar-fill.trucks {
    background: linear-gradient(90deg, var(--firma-accent-orange), #f7931e);
}

.stat-bar-fill.trailers {
    background: linear-gradient(90deg, var(--firma-accent-blue), #2980b9);
}

/* Podgląd pojazdów */
.garaze-card-vehicles {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.vehicles-preview {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vehicle-thumb {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--firma-border);
    transition: all 0.2s ease;
}

.vehicle-thumb:hover {
    transform: scale(1.1);
    z-index: 1;
}

.vehicle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-thumb.has-driver {
    border-color: var(--firma-accent-green);
}

.driver-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: var(--firma-accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
}

.vehicles-more {
    width: 48px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--firma-text-secondary);
}

.vehicles-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--firma-text-secondary);
    font-size: 0.875rem;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

/* Akcje */
.garaze-card-actions {
    padding: 16px 20px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.garaze-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--firma-border);
    border-radius: 8px;
    color: var(--firma-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.garaze-action-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--firma-accent-orange);
    color: var(--firma-accent-orange);
}

/* Responsywność */
@media (max-width: 768px) {
    .garaze-modern-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .garaze-modern-title {
        flex-direction: column;
    }
    
    .garaze-modern-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .garaze-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .garaze-grid {
        grid-template-columns: 1fr;
    }
}

/* Przyciski akcji w zestawie */
.zestaw-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.zestaw-actions .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.garaz-card-footer {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   FORMUARZE GARAŻY
   ============================================ */
.garaz-form-section {
    background: var(--firma-bg-card);
    border: 1px solid var(--firma-border);
    border-radius: var(--firma-radius, 12px);
    padding: 24px;
    margin-bottom: 20px;
}

.garaz-form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--firma-text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--firma-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.garaz-form-section-title i {
    color: var(--firma-accent-orange);
}

.garaz-form-label {
    display: block;
    font-size: 0.875rem;
    color: var(--firma-text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.garaz-form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--firma-border);
    border-radius: 8px;
    color: var(--firma-text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.garaz-form-control:focus {
    outline: none;
    border-color: var(--firma-accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.garaz-form-control::placeholder {
    color: var(--firma-text-secondary);
}

.garaz-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0aec0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.garaz-input-group {
    display: flex;
    gap: 0;
}

.garaz-input-group .garaz-form-control {
    border-radius: 8px 0 0 8px;
    flex: 1;
}

.garaz-input-group .btn {
    border-radius: 0 8px 8px 0;
    padding-left: 16px;
    padding-right: 16px;
}

/* ============================================
   MODALE GARAŻÓW
   ============================================ */
.garaz-modal .modal-content {
    background: var(--firma-bg-dark);
    border-radius: var(--firma-radius, 12px);
    border: 1px solid var(--firma-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.garaz-modal .modal-header {
    background: linear-gradient(135deg, var(--firma-accent-orange) 0%, #f7931e 100%);
    border-bottom: none;
    padding: 16px 24px;
    border-radius: var(--firma-radius, 12px) var(--firma-radius, 12px) 0 0;
}

.garaz-modal .modal-title {
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.garaz-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.garaz-modal .modal-body {
    padding: 24px;
}

.garaz-modal .modal-footer {
    border-top: 1px solid var(--firma-border);
    padding: 16px 24px;
}

/* ============================================
   KARTA ZESTAWU W GARAŻU
   ============================================ */
.zestaw-card {
    background: var(--firma-bg-card);
    border: 1px solid var(--firma-border);
    border-radius: var(--firma-radius, 12px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.zestaw-card-header {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zestaw-card-header .zestaw-id {
    font-size: 0.85rem;
    color: var(--firma-text-secondary);
}

.zestaw-card-header .zestaw-rank {
    background: rgba(255, 107, 53, 0.2);
    color: var(--firma-accent-orange);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.zestaw-card-body {
    padding: 20px;
}

.zestaw-vehicle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--firma-border);
}

.zestaw-vehicle-img {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--firma-border);
}

.zestaw-vehicle-info h6 {
    color: var(--firma-text-primary);
    margin-bottom: 4px;
    font-weight: 600;
}

.zestaw-vehicle-info p {
    color: var(--firma-text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.zestaw-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.zestaw-spec {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
}

.zestaw-spec-label {
    font-size: 0.75rem;
    color: var(--firma-text-secondary);
    margin-bottom: 4px;
}

.zestaw-spec-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--firma-text-primary);
}

.zestaw-card-footer {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 8px;
}

/* ============================================
   RESPONSYWNOŚĆ GARAŻY
   ============================================ */
@media (max-width: 768px) {
    .garaz-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .garaz-card-footer {
        flex-direction: column;
    }
    
    .garaz-card-footer .btn {
        width: 100%;
    }
    
    .zestaw-vehicle {
        flex-direction: column;
        text-align: center;
    }
    
    .zestaw-specs {
        grid-template-columns: 1fr;
    }
    
    /* Nowy układ poziomy zestawów */
    .zestawy-list-horizontal {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .zestaw-row-item {
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 12px;
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .zestaw-vehicle-box,
    .zestaw-trailer-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 80px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 6px;
    }
    
    .zestaw-trailer-box {
        background: rgba(52, 152, 219, 0.1);
        border: 1px solid rgba(52, 152, 219, 0.3);
    }
    
    .zestaw-img-small {
        width: 48px;
        height: 32px;
        border-radius: 4px;
        object-fit: cover;
        border: 1px solid var(--firma-border);
        margin-bottom: 4px;
    }
    
    .zestaw-vehicle-name {
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--firma-text-primary);
        text-align: center;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .zestaw-plate-small {
        font-size: 0.65rem;
        color: var(--firma-text-secondary);
        font-family: monospace;
    }
    
    .zestaw-connector {
        color: var(--firma-accent-orange);
        font-size: 1.2rem;
    }
    
    .zestaw-driver-status {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 0.7rem;
        min-width: 70px;
    }
    
    .zestaw-driver-status.status-assigned {
        background: rgba(46, 204, 113, 0.2);
        color: var(--firma-accent-green);
    }
    
    .zestaw-driver-status.status-unassigned {
        background: rgba(160, 174, 192, 0.2);
        color: var(--firma-text-secondary);
    }
    
    .zestaw-actions-mini {
        display: flex;
        gap: 4px;
    }
    
    .zestaw-actions-mini .btn {
        padding: 4px 6px;
    }
}

