/* ============================================
   COMPONENTS.CSS – APPLE TARZI FORM ELEMANLARI
   ============================================ */

/* Divider */
.divider {
    margin: 18px 0 10px;
    color: var(--divider);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ============================================
   IOS GROUPED LISTS (Settings Style)
   ============================================ */
.ios-list {
    background: var(--ios-card-bg);
    backdrop-filter: blur(var(--ios-blur));
    -webkit-backdrop-filter: blur(var(--ios-blur));
    border-radius: var(--ios-radius);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--ios-border);
}

.ios-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    /* Slight tint */
    border-bottom: 1px solid var(--divider);
    transition: background 0.2s;
    min-height: 52px;
}

.ios-item:last-child {
    border-bottom: none;
}

.ios-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.ios-label {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 500;
    flex: 1;
}

.ios-content {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Ghost Input (No Border, Right Aligned) */
.ios-input-ghost {
    background: transparent !important;
    border: none !important;
    text-align: right;
    color: var(--text-muted) !important;
    font-size: 16px;
    padding: 0;
    margin: 0;
    width: 100%;
}

.ios-input-ghost:focus {
    color: var(--text-main) !important;
    box-shadow: none !important;
}

/* ============================================
   IOS SWITCH (TOGGLE)
   ============================================ */
.ios-switch {
    position: relative;
    display: inline-block;
    width: 51px;
    height: 31px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(120, 120, 128, 0.32);
    /* iOS Off Gray */
    transition: .3s;
    border-radius: 31px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 27px;
    width: 27px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

input:checked+.slider {
    background-color: #34C759;
    /* iOS Green */
}

input:checked+.slider:before {
    transform: translateX(20px);
}

/* Section Headers */
.ios-header {
    padding: 0 0 8px 16px;
    /* Indent like iOS */
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 24px;
}