/* Modal Styles */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container.hidden {
    display: none;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    transform: none !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.btn-close:hover {
    color: var(--text-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
}

.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.form-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.pool-info {
    background: rgba(var(--accent-primary-rgb), 0.1);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.button-group button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-primary-dark);
}

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

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

.btn-spinner {
    display: inline-flex;
    align-items: center;
}

.btn-spinner.hidden {
    display: none;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.25rem;
    }

    .modal-header {
        margin-bottom: 1.25rem;
    }

    .modal-header h3 {
        font-size: 1.15rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .button-group button {
        width: 100%;
        padding: 0.875rem;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 100%;
        margin: 0.5rem !important;
        padding: 1rem;
        border-radius: 8px;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .select-wrapper select {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }

    .form-info {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .button-group {
        margin-top: 1.25rem;
    }

    .button-group button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}
