/* --- Shared iOS Component Styles --- */
#event-explorer-modal {

    .ios-form-card {
        background: #282b3e !important;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 12px;
        border: 0.5px solid #334155 !important;
        margin: 0;
    }

    #order-form-modal {
        padding: 0 !important;
    }

    #date-poll-modal-container,
    #order-items-modal-container {
        .ios-card-header {
            color: var(--accent);
            font-size: 19px;
            padding: 1rem;
            font-weight: 600;
        }

        >p {
            padding: 0 1rem 0.5rem;
            font-size: 19px;
            opacity: 0.6;
            line-height: 1.3;
        }
    }

    .comment-card {
        .ios-card-header {
            padding: 1rem 1rem 0.5rem;
        }
    }

}

.ios-form-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
    min-height: 48px;
    gap: 12px;
    background: #282b3e;
    transition: background 0.2s ease;
}

.ios-form-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 0;
    height: 0.5px;
    background: #38383a;
}

.ios-row-label {
    font-size: 19px;
    color: #e6e6e6;
    font-weight: 400;
    flex: 1;
}

.ios-row-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quantity Stepper (iOS Style) */
.ios-qty-stepper {
    display: flex;
    align-items: center;
    background: #1c1c1e;
    border-radius: 8px;
    padding: 2px;
}

.ios-qty-stepper .qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: var(--accent);
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.ios-qty-stepper .qty-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.ios-qty-stepper .qty-input {
    width: 38px;
    border: none;
    background: transparent;
    color: #ffffff;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}

.ios-qty-stepper .qty-input::-webkit-outer-spin-button,
.ios-qty-stepper .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ios-textarea {
    background: #1c1c1e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px !important;
    font-family: var(--font-main) !important;
    font-size: 17px !important;
    width: 100% !important;
    resize: none;
    outline: none;
}

.ios-submit-bar {
    padding: 1rem 0;
    text-align: center;
}

.ios-submit-btn {
    background: var(--accent) !important;
    color: #000 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    width: 100% !important;
    border: none !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-submit-btn:active {
    transform: scale(0.98);
}

/* --- Attendance Selection Grid --- */
.attendance-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.attendance-selector {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.attendance-selector input {
    display: none;
}

.selector-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 10px;
    height: 100%;
}

.selector-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.2s;
}

.selector-label {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    opacity: 0.6;
    transition: opacity 0.2s;
    text-align: center;
}

/* Hover States */
.attendance-selector:hover .selector-card {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* Checked States */

/* Status Yes (Green) */
.attendance-selector input[value="yes"]:checked+.status-yes {
    background: rgba(52, 199, 89, 0.12);
    border-color: #34c759;
}

.attendance-selector input[value="yes"]:checked+.status-yes .selector-icon {
    background: #34c759;
    color: #fff;
}

.attendance-selector input[value="yes"]:checked+.status-yes .selector-label {
    opacity: 1;
    color: #34c759;
}

/* Status Maybe (Orange) */
.attendance-selector input[value="maybe"]:checked+.status-maybe {
    background: rgba(255, 149, 0, 0.12);
    border-color: #ff9500;
}

.attendance-selector input[value="maybe"]:checked+.status-maybe .selector-icon {
    background: #ff9500;
    color: #fff;
}

.attendance-selector input[value="maybe"]:checked+.status-maybe .selector-label {
    opacity: 1;
    color: #ff9500;
}

/* Status No (Red) */
.attendance-selector input[value="no"]:checked+.status-no {
    background: rgba(255, 59, 48, 0.12);
    border-color: #ff3b30;
}

.attendance-selector input[value="no"]:checked+.status-no .selector-icon {
    background: #ff3b30;
    color: #fff;
}

.attendance-selector input[value="no"]:checked+.status-no .selector-label {
    opacity: 1;
    color: #ff3b30;
}

/* Date Poll Voting Circles */
.poll-vote-radio-modern {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: transparent;
    /* Icon invisible when not selected */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-vote-radio-modern:active {
    transform: scale(0.85);
}

/* Hover (if not mobile) */
@media (hover: hover) {
    .poll-vote-radio-modern:hover:not(.selected) {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.poll-vote-radio-modern.selected {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.poll-vote-radio-modern.selected.status-yes {
    background: #34c759;
}

.poll-vote-radio-modern.selected.status-maybe {
    background: #ff9500;
}

.poll-vote-radio-modern.selected.status-no {
    background: #ff3b30;
}