/* ========================================
    🎨 GŁÓWNE STYLE KONTENERA
======================================== */
.ios-container {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ios-container > *:not(:last-child) {
    margin-bottom: 16px;
}

.ios-form-spaced {
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .ios-container {
        padding: 12px;
    }
}

/* ========================================
    🧾 ETYKIETY I NAGŁÓWKI
======================================== */
.ios-label {
    display: block;
    margin: 16px 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* ✅ Radio group: wyświetlanie obok siebie + odstępy */
.ios-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.ios-radio-group label {
    background: #f1f1f1;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ios-radio-group input[type="radio"] {
    margin-right: 6px;
}


/* ========================================
    🧩 POLA FORMULARZA (inputy, textarea, selecty)
======================================== */
.ios-input,
textarea.ios-input,
select.ios-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #fff;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease-in-out;
}

.ios-input:focus,
textarea.ios-input:focus,
select.ios-input:focus {
    border-color: #007aff;
}

select.ios-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23666' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* ========================================
    ✅ ALERTY I KOMUNIKATY
======================================== */
.ios-alert {
    margin-top: 14px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.ios-alert.success { background-color: #e6fbe8; color: #218838; }
.ios-alert.error   { background-color: #fdecea; color: #cc0000; }
.ios-alert.warning { background-color: #fff4e5; color: #ed6c02; }
.ios-alert.info    { background-color: #e7f3ff; color: #0277bd; }

/* ========================================
    📋 CHECKBOXY GRUPOWE
======================================== */
.ios-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.ios-checkbox-group label {
    background: #f1f1f1;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.ios-checkbox-group input[type="checkbox"] {
    margin-right: 6px;
}

/* ========================================
    🔘 PRZYCISKI
======================================== */
.ios-button,
.ios-button-primary,
.ios-button-danger,
.ios-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease-in-out;
    text-align: center;
    text-decoration: none;
    width: 100%;
}

a.ios-button,
a.ios-button-primary,
a.ios-button-danger,
a.ios-button-secondary {
    display: block;
}

.ios-button-primary {
    background-color: #007aff;
    color: #fff !important;
    margin-top: 24px;
}
.ios-button-primary:hover {
    background-color: #005fce;
}

.ios-button-danger {
    background-color: #ff3b30;
    color: white;
}
.ios-button-danger:hover {
    background-color: #d1271c;
}

.ios-button-secondary {
    background-color: #f1f1f1;
    color: #333;
}
.ios-button-secondary:hover {
    background-color: #e1e1e1;
}

.ios-button-inline {
    width: auto !important;
    margin-top: 0 !important;
}

.ios-button-compact {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}

.ios-button-group {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: space-between;
}

@media (max-width: 480px) {
    .ios-button,
    .ios-button-primary {
        padding: 12px 10px;
        font-size: 14px;
        margin-top: 16px;
        margin-bottom: 10px;
    }

    .ios-button-group {
        flex-direction: column;
        gap: 10px;
    }

    .ios-button-compact {
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }
}

/* ✅ POPRAWKA DLA INPUT + BUTTON (np. NIP + REGON) */
.ios-input,
.ios-button,
.ios-button-primary,
.ios-button-secondary {
    box-sizing: border-box;
    line-height: 1.2;
}

.ios-button,
.ios-button-primary,
.ios-button-secondary {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 16px;
}

/* ========================================
    🔐 ZAKŁADKI LOGOWANIA / PANELU
======================================== */
.ios-tabs {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}
.ios-tab {
    padding: 10px;
    font-size: 14px;
    background: #f1f1f1;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ios-tabs .ios-tab.active {
    background-color: #007aff;
    color: #fff;
}
.ios-tab-content {
    display: none;
}
.ios-tab-content.active {
    display: block;
}
.ios-tab-content.fade {
    transition: opacity 0.3s ease;
    opacity: 0;
}
.ios-tab-content.fade.active {
    opacity: 1;
}

/* ========================================
    🚪 WYLOGOWANIE
======================================== */
.ios-logout-box {
    text-align: center;
    margin-top: 20px;
}

/* ========================================
    📦 BOXY DODAWANIA FIRM
======================================== */
.combo-firma-box {
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.combo-tab-content input[type="text"],
.combo-tab-content input[type="email"],
.combo-tab-content input[type="password"],
.combo-tab-content input[type="url"],
.combo-tab-content input[type="date"],
.combo-tab-content select,
.combo-tab-content textarea {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ========================================
    📂 OBSŁUGA FORMULARZY - TOGGLE
======================================== */
#combo-new-firma-form {
    margin-
    top: 20px;
}

/* ✅ Usunięcie kropek z listy komunikatów */
.ios-alert ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }
  
  .ios-alert li::marker {
    content: '';
    display: none;
  }