/* Raise Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal-dialog {
    background: var(--pico-card-background-color);
    color: var(--pico-color);
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 1rem 0;
    color: var(--pico-color);
}

.raise-amount-display {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--pwf-success-text);
    margin: 1rem 0;
}

.raise-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #1a5f3f, #27ae60);
    cursor: pointer;
}

.raise-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.raise-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.raise-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.raise-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
}

.raise-slider:focus {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--pico-muted-color);
    margin-top: 0.5rem;
}

.modal-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-cancel {
    background: var(--pwf-neutral);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-cancel:hover {
    background: var(--pwf-neutral-hover);
}

.btn-confirm {
    background: var(--pwf-success);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-confirm:hover {
    background: var(--pwf-success-hover);
}

.btn-danger {
    background: var(--pwf-danger);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-danger:hover {
    background: var(--pwf-danger-hover);
}

/* Quick-Raise Preset Button Styles */
.raise-presets {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.raise-preset-btn {
    background: var(--pwf-surface-muted);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: inherit;
    transition: background 0.15s ease;
    min-height: 44px;
}

.raise-preset-btn:hover {
    background: var(--pwf-surface-hover);
}

.raise-preset-btn:focus-visible {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
}

.raise-text-input {
    width: 100%;
    text-align: center;
    font-size: 1.125rem;
    padding: 0.5rem;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 4px;
    margin: 0;
}

.raise-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.raise-step-btn {
    background: var(--pwf-surface-muted);
    color: inherit;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.raise-step-btn:hover {
    background: var(--pwf-surface-hover);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Admin Controls Section Styles */
.admin-controls-section {
    border: 2px solid #f39c12;
    background: rgba(243, 156, 18, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.15);
    margin-top: 1.5rem;
}

.admin-warning-banner {
    background: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.admin-action-button {
    background-color: var(--pwf-danger);
    border-color: var(--pwf-danger-hover);
    transition: all 0.2s ease;
}

.admin-action-button:hover {
    background-color: var(--pwf-danger-hover);
    border-color: var(--pwf-danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Phase 2: Mobile Bottom-Sheet Raise Drawer in the iPhone 4 Thumb Zone */
@media (max-width: 767px) {
    #raise-modal.modal-overlay {
        align-items: flex-end;
        justify-content: center;
        background: rgba(0, 0, 0, 0.45);
    }

    #raise-modal .modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
    }

    #raise-modal .modal-title {
        font-size: 0.95rem;
        margin: 0 0 0.2rem 0;
        text-align: center;
    }

    #raise-modal .raise-amount-display {
        font-size: 1.4rem;
        margin: 0.15rem 0 0.35rem 0;
    }

    #raise-modal .raise-presets {
        margin: 0.35rem 0;
        gap: 0.35rem;
    }

    #raise-modal .raise-preset-btn {
        flex: 1;
        padding: 0.35rem 0.25rem;
        font-size: 0.78rem;
        min-height: 40px;
        margin: 0;
    }

    #raise-modal .raise-input-group {
        margin-top: 0.35rem;
    }

    #raise-modal .raise-text-input {
        padding: 0.35rem;
        font-size: 1rem;
        height: 40px;
    }

    #raise-modal .raise-step-btn {
        min-height: 40px;
        min-width: 44px;
    }

    #raise-modal .modal-btn-group {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

    .raise-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    .raise-slider::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    .btn-cancel,
    .btn-confirm {
        padding: 0.65rem 0.875rem;
        min-height: 44px;
        margin: 0;
    }
}


